The standard way to iterate through an array is:




for(i = 0; i < sizeOfArray; i++) {
//whatever code you need here.
if(Array[i] == numberYouWant)
count++;
}