Helper used to get an unique id per event.
It's public just because we need to reset it to -1 for utests! TODO: we shouldn't have to do this...
See Implementation
Helper used to get an unique id per event.