So, you'd want something to happen only when the button has been pressed 10 times?
You would need a separate field (maybe a hidden one) to count the number of button presses, so you add 1 to the value each time. And then after you increment the value you have an if statement that checks when the value has reached 10.