JavaScript counter
<p>Everytime a specific action is made in JavaScript for example this:</p>

<pre><code>&lt;script type="text/javascript"&gt;
$(function() {
    $('#typing').keyup(function () {
     switch($(this).val()) {
       case 'containment':
// HERE
break;
     }
    });
});
&lt;/script&gt;
</code></pre>

<p>inside the //HERE would be where the 'counter' was made. Then add 1 everytime the case 'containment' is run if it's not already run. So if I run containment  case once.. it adds. If I run it again.. it will not -- see what I am talking about?</p>
