Count Occurrences

MEDIUM · C · 2000ms

One judge is suspected of favoring a particular project — Tanvir must count exactly how many times that project's score appears in the marks list. Read N integers and a query value X. Print how many times X appears in the array.

Input

First line N, second line N integers, third line X.

Output

One integer: count of X.

Constraints

1 ≤ N ≤ 10^5

Sample Input

5
1 2 2 3 2
2

Sample Output

3
main.c
Loading editor…

Write C, then Run (custom I/O) or Submit (sample tests). ⌘/Ctrl+Enter submits.

Count Occurrences · DIU ContestHub