I have a project to submit in two days and I can't wrap my mind around something...Kindly help

I have a variable storing a number, say int i=5

I have an array of about 10 numbers stored and I want to check that array for values higher than int i (5)

Lets say my array has 6, 4, 6, 7, 6, 2, 7, 1, 7, 7

Essentially what I want to do is search the array for all the values higher than 5 and I want to retrieve those values and account for how much the numbers occur ...say my array has 3 sixes and 4 sevens, I want to be able to retrieve the array value for all the numbers higher than 5 and the count as well.
I know there's some kind of search going on but idk what to do...
Any help is appreciated...