event counter implemented