(Occurrences of a specified character) Write a function that finds the number of occurrences of a specified character in the string using the following header:
int count(const string& s, char a)
For example, count("Welcome", 'e') returns 2. Write a test program that reads a string and a character and displays the number of occurrences of the character in the string. Here is a sample run of the program:

We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.