get the event number in samplertask