Count the letters#8571

Count the letters

1 Sekunde
128 Megabyte
Sehr leicht

Given a string and a letter . Determine how many times the letter appears in the string .

Eingabe

The first line contains the string , with a length not exceeding characters. The second line contains a lowercase letter from the Latin alphabet.

Ausgabe

Print the number of occurrences of the letter in the string . Upper and lower case letters are considered the same. For example, the letters 'a' and 'A' are considered the same.

Beispiele

Beispiel 1

Loading
Loading

Beispiel 2

Loading
Loading