In a universe with only a cube and a sphere the question of how many things there are can neither be asked nor answered, unless the cube is talking to the sphere.
It goes even further than that. They would need to be omniscient as well. How else would they know they are the only things in there, can they observe everything?