Press the button on a digital tasbih counter and the number on its little screen goes up by one. Press again and it goes up again. Nobody inside the gadget is counting on their fingers. Something in there is remembering the number between presses, and each press tells it, "add one." The wall clock in a coaching centre does the same thing every second: the seconds go 58, 59, and then drop back to 00 while the minutes step forward by one. The token display at a bank counter, the stopwatch on your phone, the trip meter of a bus: all of them are counters.
A counter is a small memory plus one rule. The memory is a handful of flip-flops, each holding one bit. The rule is "at every clock pulse, move on to the next number in the list." Use the same flip-flops a different way, each one handing its bit to its neighbour, and you get a register that can hold a whole byte and slide it along a wire. Counters and registers sit under almost every digital device, and the exam papers know it: how many flip-flops a MOD-12 counter needs, what frequency comes out of the last stage, what a given circuit counts, how a byte travels down one wire.
By the end of this chapter you will be able to say how many flip-flops a counter needs and what range it counts. You will work out the frequency that comes out of each stage, and the longest clock a ripple counter can take. You will cut a counter short at any number you like. You will design a synchronous counter for any sequence from the excitation table, and read an unknown counter circuit to find what it counts. You will tell a register from a latch, trace data through SISO, SIPO, PISO and PIPO shift registers, and say what a shift does to a number. And you will explain the ring, Johnson and LFSR counters, with their state sequences.