Counting leaf nodes?

Help
Kathir A
2008-06-18
2013-04-29
  • Kathir A
    Kathir A
    2008-06-18

    I would liked to count the number of leaf nodes under a given 'Synset' on a hyponym tree.

    For example, there are 5 leaf nodes under "immunodeficiency".

    Instead of actually traversing each and every leaf node, is there a better way to get this number?
    Is there any child statistics stored in nodes?

    Thanks for the help.