#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, a[200], b[200] = {0};
  cin >> n >> x;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    b[a[i]] = 1;
  }
  int ans = 0;
  for (int i = 0; i < x; i++) {
    if (b[i] == 0) ans++;
  }
  if (b[x] == 1) ans++;
  cout << ans;
  return 0;
}
