I have this variable called counter that starts at zero. And I want to update it everytime the user clicks on a certain button
window.counter = 0;
jQuery("#someButton").click(function(){
window.counter += 1;
})
So everytime the user clicks the button counter increase by 1.