add event counting to NtupleReader