A simple mod N counter that counts from 0 to N-1 , so either you use a synchronous or asynchronous approach , you will be needing LogN FF . The only difference will be the amount of additional circuitry that will be needed in case of a synchronous counter.