add Database.number_of_minima()

and Database.number_of_transition_states()