Program counts a number of events after reset. The event "OnInterrupt" occurs every 500ms.