#include <bits/stdc++.h>
using namespace std;
int a[105];
int main() {
  memset(a, false, sizeof(a));
  int n, x, number, count = 0;
  cin >> n >> x;
  for (int i = 0; i < n; i++) {
    cin >> number;
    a[number] = true;
  }
  if (a[x]) {
    a[x] = false;
    count++;
  }
  for (int i = 0; i < x; i++) {
    if (!a[i]) {
      a[i] = true;
      count++;
    }
  }
  cout << count << endl;
  return 0;
}
