General help

I am trying to create an int variable or array that records how many times the program has run in between the LED coming on and a button being pressed.

I am working with an Arduino Esplora Board

any solutions?