Based on your comment to L.B., I understand that you want to count the number of occurences of each "status" value, so I would try something like this:
int[] vals = new int[10] { 1, 1, 2, 2, 3, 3, 3, 4, 4, 1 };
var res = vals.GroupBy(v => v).ToDictionary(g => g.Key, g => g.Count());
res
now holds a Dictionary where each KeyValuePair has a Key representing a Status code, and a Value representing the number of time this Status code is in the array.
You can now test a Status code's number of appearance like this:
int Code1;
res.TryGetValue(1, out Code1); // testing for Status code 1
And so on.
Cheers