bst_count - function to count the number of different bst's by the number of nodes