Created a program that finds the number of entries in a tree.