Counting pulses and using them

my idea start from this example

The example is a good place to start.

The buttonPushCounter variable holds the number of button presses. You need a way to trigger the LED flashing such as another button input. When the start button is pressed you can call a function flash the LED. If the Arduino is not required to do anything else this will be easy. Are you familiar with for loops ?