You are given a string text and a single-character string ch.
Return an int equal to the number of times the character ch occurs inside text.
The count is case-sensitive (an uppercase letter and its lowercase form are different characters). If ch does not occur in text, or text is empty, return 0.
NOTE: This is a function-type question — you only write the function. Do not read input or print anything; a hidden checker calls your function and checks its return value.
Arguments
'banana'
'a'
Returns
3