Frequency of a Value
Count how many times a value appears in an array.
Input format
The first line contains N. The second line contains N integers. The third line contains the integer VALUE.
Output format
Print how many times VALUE appears in the array.
Constraints
- Values fit in a 64-bit signed integer
- Trailing whitespace and a trailing newline are ignored by the judge
Read from stdin, write to stdout. Sample cases below show the exact format.
Sample cases
Example 1
Input
6
1 2 2 3 2 4
2Expected output
3Example 2
Input
4
5 6 7 8
9Expected output
0