#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x;
  cin >> n >> x;
  vector<int> v(n);
  int less = 0;
  int ans = 0;
  for (int i = 0; i < n; i++) {
    cin >> v[i];
    if (v[i] < x) less++;
    if (v[i] == x) ans = 1;
  }
  if (ans)
    cout << x - less + 1 << endl;
  else
    cout << x - less << endl;
  return 0;
}
