Problem2641--字符串与字符

2641: 字符串与字符

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 158  Solved: 132
[Status] [Submit] [Creator:]

Description

给定一个字符串 s 以及字符 c。

统计字符串 s 中字符 c 出现的次数。

Input

第一行,一个字符串 s。s 仅由小写英文字母组成且长度不超过 1000。  

第二行,一个字符 c。c 是一个小写英文字母。  

Output

输出一个整数,表示字符串 s 中字符 c 出现的次数。  

Sample Input Copy

applebanana
a

Sample Output Copy

4

Source/Category