the easiest way to check occurrence if you cant use collections is to use a dictionary. The key as the identifyer (such as your 9 ints), and the value is the number of occurrences. Every time the dict key is inputed (one of your 9 ints), that key's value gets incremented.
Recommended Tutorials: