#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, s;
  bool f = false;
  cin >> n >> x;
  vector<int> a;
  for (int i = 0; i < n; ++i) {
    int k;
    cin >> k;
    if (k <= x) {
      a.push_back(k);
    }
  }
  s = 0;
  for (int i = 0; i < x; ++i) {
    bool f = false;
    for (int j = 0; j < int(a.size()); ++j) {
      if (a[j] == i) {
        f = true;
      }
    }
    if (!f) {
      s++;
    }
  }
  f = false;
  for (int j = 0; j < int(a.size()); ++j) {
    if (a[j] == x) {
      f = true;
    }
  }
  if (f) {
    s++;
  }
  cout << s;
  return 0;
}
