Fix getNumNodes(). Add function to get nodes per level.