A counter is probably one of the most useful and versatile subsystems in a digital system. A counter driven by a clock can be used to count the number of clock cycles. Since the clock pulses occur at know intervals, the counter can be used as an instrument for measuring time and therefore period or frequency. There are basically two different types of counters synchronous and asynchronous.