Count how many times charCode occurs in input.
charCode
input
countCharCode('hello', 'l'.charCodeAt(0)); // 2 Copy
countCharCode('hello', 'l'.charCodeAt(0)); // 2
Count how many times
charCodeoccurs ininput.