Adding registers and logic to implement block counter.