Nrf connect sdk timer

I need a Timer count to five if its not five yet will do advertising and other job, if its five will stop the advertising and start scanning.

Related