P24767 [AtCoder] Count Takahashi
入门
题目描述

Problem Statement

You are given N strings.
The $i-th string S_i (1 \leq i \leq N)$ is either Takahashi or Aoki.
How many i are there such that S_i is equal to Takahashi?

Input

The input is given from Standard Input in the following format:
N
S_1
S_2
$\vdots$
S_N

Output

Print the count of i such that S_i is equal to Takahashi as an integer in a single line.

Constraints

  • $1 \leq N \leq 100$
  • N is an integer.
  • Each S_i is Takahashi or Aoki. $(1 \leq i \leq N)$

Sample Input 1

3
Aoki
Takahashi
Takahashi

Sample Output 1

2

S_2 and S_3 are equal to Takahashi, while S_1 is not.
Therefore, print 2.

Sample Input 2

2
Aoki
Aoki

Sample Output 2

0

It is possible that no S_i is equal to Takahashi.

Sample Input 3

20
Aoki
Takahashi
Takahashi
Aoki
Aoki
Aoki
Aoki
Takahashi
Aoki
Aoki
Aoki
Takahashi
Takahashi
Aoki
Takahashi
Aoki
Aoki
Aoki
Aoki
Takahashi

Sample Output 3

7

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
3 Aoki Takahashi Takahashi
样例输出
2