If button pressed more than 5 times in 5 seconds the LED will turn on

+1 with Olf

Could be a good idea to implement with a 5 slot circular buffer to show creativity

Alternatively fill up an array of 6 elements and starts shifting data out FIFO and perform the 5 sec test between index 0 and index 4

(Or if more than 5 times means at least 6 then add 1 position to the buffer)