Amazon Interview Question

Create an algorithm to find the length of a binary tree.