Size of tree function