BSTree node count method, driver in main.