Author:
Problem types
Points: 800 (p) Time limit: 1.0s Memory limit: 1023M Input: stdin Output: stdout

Cho một dãy gồm n số nguyên dương \(A_1, A_2,…, A_n\). (\(N \le 10^5, A_i \le 10^9\)) và số \(x\). Hãy đếm số lần xuất hiện của giá trị \(x\) trong mảng \(A\).

Input

  • Dòng đầu chứa số \(n\)\(x\)
  • Dòng thứ hai chứa \(n\) số nguyên dương \(A_1, A_2,…, A_n\).

Output

  • Số lần xuất hiện số x trong mảng \(A\).

Example

Test 1

Input
6 451
91 451 43 3 451 54
Output
2

Comments (14)

Most recent
Loading comments...