save the total number of events before the unfolding