#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, v, cnt = 0;
  cin >> n >> x;
  vector<bool> a(101);
  for (int i = 0; i < n; ++i) {
    cin >> v;
    a[v] = true;
  }
  for (int i = 0; i < x; ++i) cnt += a[i] ? 0 : 1;
  if (a[x]) cnt += 1;
  cout << cnt << endl;
}
