Dynamic Array Value Count
<p>Similar to this question - <a href="http://stackoverflow.com/questions/8607455/array-value-count-javascript">Array value count javascript</a></p>

<p>How would I go about doing this, except with dynamic values?</p>

<pre><code>var counts = []
var dates= [ "28/05/2013", "27/05/2013", "28/05/2013", "26/05/2013", "28/05/2013" ];
</code></pre>

<p>How would I get a count of the duplicated array values? So how many 28/05/2013 etc. The dates are all dynamic, so I can't just search for set values. I just can't get my head around how I would do this.</p>

<p>I may just scrap this idea, and get the value count from the last 10 days or something... but this may come in handy later(if it is even possible to do this).</p>
