Flip-flops can be connected together to create counting circuits. Examine the circuitry behind 2-bit, n-bit, and decade counters, then see how the interruption of a light beam can be used in conjunction with such a circuit to keep count of people walking by or products moving along an assembly line.