int n, x, count = 0; std::cin >> n >> x;
int a[n]; for (int i = 0; i < n; ++i) { std::cin >> a[i]; if (a[i] == x) { count++; } } std::cout << count;