Registers and counters are similar in the sense?

count pulses