reverted implementation of event counter