NDescendants function

Count descendants for each node in a tree