coding in java lab

Job ID: 34712226

Budget: $10 – $30 USD

I'm having trouble implementing my code and need help with minor errors and making sure i get the correct outputs.

Write a program whose input is a character and a string, and whose output indicates the number of times the character appears in the string. The output should include the input character and use the plural form, n's, if the number of times the characters appears is not exactly 1.
The program must define and call the following method that takes the input string and character as parameters, and returns the number of times the input character appears in the input string.
public static int calcNumCharacters(String userString, char userChar)
input: n Monday
output: 1 n
input: n it's sunny
outputs: 2 n's
attached is my code I just need it to fix to implement the correct outputs