save the total number of events for data and MC