#include <iostream> using namespace std; int main() { int n, num, m, s = 0; cin >> n >> m; while (n--) { cin >> num; if (num == m) s++; } cout << s; return 0; }