get_num_samples function

Get the number of training points contained in a node of a tree