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