help with this code and write urgent

Q2. Write a method called countOdds in java that takes an array of 10 integers as a parameter which is given by the user. The method counts the odd numbers in the elements and return the count.

please can someone help me with this
its java programming