I have to design a logic counter that can produce a one hertz clock from a 4MHz source on the software package Quartus. I have read loads on this but cant seem to understand the basic logic of this. I have been using D-Type Flip Flops and "and" gates.

If i could understand the logic behind it properly I believe i could design the circuit.

Any help on flip flops and how they are used in these cases would be really helpful. Thanks

Lisa