#include <bits/stdc++.h>
using namespace std;
const int N = 100 + 10;
int a[N];
bool b[N];
int main() {
  int n, x;
  cin >> n >> x;
  for (int i = 0; i < n; i++) cin >> a[i];
  sort(a, a + n);
  int ans = 0;
  for (int i = 0; i < n; i++) b[a[i]] = true;
  for (int i = 0; i < x; i++)
    if (!b[i]) ans++;
  if (b[x]) ans++;
  cout << ans;
}
