demo pruning tree, counting nodes of tree, and retrieving the nodes of a tree
add functions to count and retrieve the nodes of a decision tree