frequency of items in int[] as opposed to List<Integer>?
<p>I'm trying to figure out how to get the frequency of items within a list.  When I approach this problem I typically, in the past, did:</p>

<pre><code>int occurrences = Collections.frequency(list, 0);
</code></pre>

<p>It works when my list is a <code>List&lt;Integer&gt; list</code>.  Is there a way to do this if I'm using <code>int[] list</code>? When I try collections, my list gets converted and then my code breaks. I can convert my code if needed, but was wondering, if there was a way to get the frequency from int[] instead.</p>
