how to count to number of child node?
Child is page or node ? Unfortunelty both Node and Page API returns Iterator and you have to loop through that to find number of childs. Other option is to use querymanager api and check size of resultset.
Retrieving data ...