Hi nousome,
I've made up a possible solution (attached) for what you're trying to do. It's not exactly stellar code, but it shows a few things.
Instead of blocking execution with a wait, it checks the time of each button click. If enough time hasn't elapsed since the last button click, the button click count isn't increased.
There are a lot of things that you could do differently for this: separate timers on for each button, separate exit conditions for each count, etc.
You might want to look up how the event loop/structure in my example works. It's a little easier than checking mouse coordinates (and somewhat less susceptible to timing problems of control updates and property nodes).
Good luck,
Joe Z.