Please don't ever post in coding help again.
Where the hell did that come from? He said he wanted things to happen only after a certain amount of clicks, and mentioned he knows there are events that do it. So I suggested examining that code. The code you provided doesn't even work the way he wants. That's just a click counter, without resets or any help on how to do that.
Seriously though, and I'm asking this seriously, where the hell did that come from?