#include <bits/stdc++.h>
using namespace std;
int a[10000];
int n, k;
int main() {
  cin >> n >> k;
  for (long long int i = 0; i < (n); i++) {
    int x;
    cin >> x;
    a[x] = 1;
  }
  int c = 0;
  for (long long int i = 0; i < (k); i++) {
    if (!a[i]) c++;
  }
  if (a[k]) c++;
  cout << c << endl;
  return 0;
}
