The maximum count is the highest number a counter shows. For a counter that starts at 0 it's always one less than the modulus, because 0 takes up one of the states.
- An n-bit binary counter: 2ⁿ − 1. With 8 bits that's 255; with 16 bits, 65 535. It's the same as the largest unsigned number with n bits.
- A mod n counter: N − 1. A BCD counter's maximum is 9.
The question often runs the other way: how many flip-flops to count up to M? There are M + 1 states (0 to M), so you need the smallest n with 2ⁿ ≥ M + 1 (see flip flops needed).
The terminal count output marks the maximum count in an up counter, because that's the state just before it wraps.