count number of nodes in binary tree leetcode