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