This example uses a timer to generate interrupt at a specific period. The timer event handler increments the event count and prints in stdout.