#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, ans = 0, num;
  cin >> n >> x;
  set<int> v;
  bool found = 0;
  for (int i = 0; i < n; i++) {
    cin >> num;
    v.insert(num);
    if (num == x) found = 1;
  }
  for (int i = 0; i < x; i++) {
    if (!v.count(i)) ans++;
  }
  if (found) ans++;
  cout << ans << endl;
  return 0;
}
