uses a register and some combinational logic
after reset, the counter should increase by one every second