Use long for event counter in main_console