Counting pulses and using them

Then you need to specify: once the button has been detected as having been 'pushed' you switch the LED on and for how long do you want it to remain on before turning off again. FYI 30ms is generally regarded as the minimum length of time required for the human eye/mind to really register a 'blink'. Less than that and I guess we're not really sure.