You are asking for the row count of the first top level entry in the tree.
Does that entry have children?

Cheers,
_