add some comments
functions to count nodes in the octree