Well the counter must have one state extra, at least internally, and possibly transient, to be able to detect overflow. But what does that matter to you? Why not take what it says at face value, and accept that when the counter reaches the modulo value, something happens? Usually reset to 0, but it could be preset to N, who knows, in which case it would be a shortened count cycle.
I'm reminded of the ancient 7490 counter. It has a 2 input AND gate for reset to 0, so it seems impossible use it to divide by 7. But the trick is the use the 2 input AND reset to 9 (another reset gate) to detect 6, so the states become 9, 0, 1, 2, 3, 4, 5 (and transiently 6).