Click the first button as many times as you like. Then click the second button to see how many times you clicked the first button. (If you click the first button really fast, all of clicks might not register.

However, this version does not work since the count variable is not defined as a global variable.