NetRex interview question

Write a counter component that increments every second.