Number Of Tree Nodes

Write a method that returns the number of nodes in a binary tree.
TreeNode API methods: node.left() and node.right().