getting size of the tree