JavaScript program to check the number of occurrences of a character in a string:

Created with Sketch.