Counters and state machinesLesson 2 of 7Free preview

Stop at nine

One gate that recognises the last count, and resets on the next edge, makes a counter of any length.