get_num_fits function

Generic function for returning the number of fits in a trained learner