LearnPy Hub
← Strings problems
Easy

Count a Letter

Read a line of text and then a single character. Print how many times the character appears.

Input

Two lines.

Output

A count.

Sample 1

Input
banana
a
Output
3

Sample 2

Input
hello
z
Output
0
solution.py
Output appears here
Count a Letter · Python practice problem · LearnPy Hub