It's easy to use the CD4060 binary counter IC. Simply supply power to the IC via the Vss and Ground pins; it has a wide operating voltage range of 3V to 18V but is generally used at 5V. Setting your clock frequency is the most crucial step. The internal clock oscillator of the CD4060 can be set using an external resistor (R1) and an external capacitor (C1) as demonstrated in the circuit below.

How to use CD4060
F= 1 / (2.5*R1*C1) is the formula for determining the clock frequency. The unit of F is Hz, whereas the units of R and C are ohms and farads, respectively. We chose a value of 1M for R1 and 0.22uF for the capacitor C1 in our scenario, resulting in a frequency of
F = 1 / (2.5*1000000*0.00000022)
Fosc = 1.8Hz
Similarly, we may get clock pulses of different frequencies by changing the values of R1 and C1. We can compute the time using the calculations below after we get the clock pulse.
T = 25/1.8 = 32/1.8 = 17.7
T = 17.7 seconds
Meaning the output Q5 will go high after 17.7 seconds from resetting the Counter IC.