#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  int n, x;
  cin >> n >> x;
  bool used[105];
  for (int i = 0; i <= 100; ++i) used[i] = false;
  for (int i = 1; i <= n; ++i) {
    int val;
    cin >> val;
    used[val] = true;
  }
  int ans = 0;
  for (int i = 0; i < x; ++i)
    if (!used[i]) ++ans;
  if (used[x]) ++ans;
  cout << ans;
  return 0;
}
