Count occurences of int in array java
<p>I have an array stored as:</p>

<pre><code> static int[] number = new int[50];
</code></pre>

<p>I want to write a piece of code that will count how many times certain ints appear in the array. Say the number 1.</p>

<p>Thanks</p>
