added a count method to BST class