1773: 温度统计

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:4 Solved:4

Description

现有一段时间的温度数据,请统计指定温度出现的次数。

Input

第一行一个整数n,表示温度数据的个数。(0 < n ≤ 200) 第二行n个整数,以空格分隔,每个整数表示一个温度,温度的范围大于等于0,小于等于40。 第三行一个整数,表示需要查询的温度t。(0 ≤ t ≤ 40)

Output

输出一个整数,表示温度t出现的次数。

Sample Input Copy

10
18 19 21 17 20 18 21 21 22 21
21

Sample Output Copy

4

Source/Category