you can do this incrementing a variable if the button is clicked and if thevariable is greater than certain number(10) then a following code is executed