Added event_base_get_num_events()