#include <bits/stdc++.h>
using namespace std;
int main() {
  long long i, j, k, n, t, p;
  cin >> n >> k;
  map<long long, long long> m;
  long long a[n];
  for (i = 0; i < n; i++) {
    cin >> p;
    m[p] = 1;
  }
  long long re = 0;
  for (i = 0; i < k; i++) {
    if (m[i] == 0) re += 1;
  }
  if (m[k] == 1) re += 1;
  cout << re << "\n";
}
