Events_counter now works properly