Time limit
1s
Memory limit
128 MB
Kkung decided to teach Dobby English so that Dobby could live freely. Since Dobby still needs to learn the alphabet, Kkung gives Dobby an English sentence and one lowercase letter, then asks how many times that letter appears in the sentence.
Count the letter regardless of case: uppercase and lowercase forms of the same alphabet letter are counted together. Write a program that prints the answer for each question.
The input consists of several lines.
Each line contains one lowercase letter, one space, and an English sentence whose length is between 1 and 250, inclusive.
The last line of input contains only #.
For each input line, print the given lowercase letter and the number of times that alphabet letter appears in the sentence.
Count letters without distinguishing uppercase from lowercase.