title: JavaScript - How to count an arbitrary number of clicks on a button
body: <p>I've made a simple javascript application, for calculating the reaction time based on the speed in which a div is clicked. It's working pretty well. But i whish to count an arbitrary series of click (for examples, the first 10 clicks), and, afterwards, calculating the average of reaction time in these range of clicks.
  Thanks for the help:</p>