Take a look at my code.
Everytime button is pressed counter increments by one.
Hopefully that is what you wanted. In my code the counter cycles through the "states" and then resets back to the first state but you should be able to modify it.
Maybe modify last state so it alerts how many time button was smashed maybe.