Trying to get a pause in procedure execution

Sorry, it will not work like this:

Like this (there is probably a better solution, but off the top of my head):

Oh, you should reset the counter to 0 in the button event.