#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  vector<int> v(n);
  for (int i = 0; i < n; i++) {
    cin >> v[i];
  }
  int ar[k + 1];
  int cnt1 = 0, cnt2 = 0;
  for (int i = 0; i <= k; i++) {
    ar[i] = 0;
  }
  for (int i = 0; i < n; i++) {
    if (v[i] <= k) {
      ar[v[i]] = 1;
    }
  }
  for (int i = 0; i <= k; i++) {
    if (ar[i] == 0 && i != k)
      cnt1++;
    else if (ar[i] == 1 && i == k)
      cnt2++;
  }
  cout << cnt1 + cnt2 << endl;
  return 0;
}
