#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, x;
  cin >> n >> x;
  int a[n];
  vector<int> b;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  sort(a, a + n);
  int j = 0;
  int ele = 0;
  for (int i = 0; i < 101; i++) {
    if (a[j] == i) {
      j++;
      continue;
    }
    b.push_back(i);
    ele++;
  }
  int c = 0;
  for (int i = 0; i < n; i++) {
    if (a[i] == x) c++;
  }
  for (int i = 0; i < ele; i++) {
    if (b[i] < x) c++;
  }
  cout << c;
  return 0;
}
