#P120. [KSC002B] 字符计数
[KSC002B] 字符计数
Source
This problem is adapted from Long Long OJ and proposed by . All rights reserved.
Problem Background
The string is too long, making it hard to count specific characters manually.
Problem Description
Given a string and a target character, count how many times the character appears in the string.
Input Format
- The first line contains a string .
- The second line contains the target character .
Output Format
A single integer representing the count of the target character in the string.
Samples
hahahahaha
a
5
Data Range
- For of the data, .
- For of the data, .
- For of the data, .
- For of the data, .
- For of the data, .
- It is guaranteed that only contains letters and digits.