NetRex Interview Question

Write a counter component that increments every second.