How would I write this type of function?

I'm trying to write a function that counts how many times the score is in the array and returns the number. How would I would I even go about this?
The function needs to accept an array (and the array size) and return a number. What would the function declaration look like?
Topic archived. No new replies allowed.