## How to compute the sum and the total number of nodes in a Binary Search Tree?

I am trying to figure out a way to compute the sum and the total number of nodes in a BST, Binary Search Tree. I assume that the values of the nodes are all numerical. I have made the following code …