Arrays and loops

I have a question which is not in the ultimate java course pack. I got stuck with this question so, I was hoping maybe that someone from the community or Mosh would be able to clarify this question for me.

I seriously have a lot of problems understanding methods combining loops and arrays.

Q: Write a method which takes as input an int[] and
counts how many numbers are positive.?