~/algor $ cat problems/string/how-many-times-a-letter-occurs
How many times a letter occurs
Easy
1000 ms
128 MB
22%
A string and a letter are given. Find how many times occurs in the string.
Input
The first line contains the string , the second line a single letter .
Output
One integer.
Note
consists of lowercase Latin letters (a–z) only
is a lowercase Latin letter
Examples
Input #1
banana a
Output #1
3
Input #2
salom z
Output #2
0