Array value count javascript
<p>How can I count the array depending on the value..
I have an array with this value..</p>

<pre><code>var myArr = new Array(3);
myArr[0] = "a";
myArr[1] = "a";
myArr[2] = "b";
</code></pre>

<p>I need to count the array depending on the value</p>

<p>Array with Value A is 2
Array with value B is 1</p>

<p>Thanks!</p>
