getNumberOfDescendants was correct for only 2 level, now it should work for any number of levels
Merge pull request #1 from ahujamoh/master

getNumberOfDescendants fixed for any number of levels.