I'll tell you how to do it but I won't give you the schematic.
You need either a decade counter or a 4 bit counter, either will work. Just use some logic to set the clear flag when you the number 5 shows up on the counter.
You can probably do it with less than 5 gates, its very simple.
I just realized a mistake above, since its a mod 5 counter, you want it to clock the reset at 5, but it will technically count to "5" but only for a split second. Just one of the many problems of being in the real world.
A 7490 is constructed from a divide-by-2 and a divide-by-5 counter. Download the datasheet and look for the internal logic diagram. It details how the gates are connected internally to achieve these functions. Also, the 74hc390 is similar, but it has two div-by-2 and div-by-5 systems inside.
JB