add numDescendants method to SortedTreeNode