Count occurrences

Report a typo

Write a program that counts the times a number M occurs in N numbers.

The first line contains the N number.
The next N lines contain the numbers.
The last line contains the M number.

Output only a single non-negative integer number.

Sample Input 1:

6
1
2
3
4
2
1
2

Sample Output 1:

2
Write a program in Kotlin
fun main() {
// write your code here
}
___

Create a free account to access the full topic