Occurence of Char In String

Note

Use a counter variable.

Java

Python