#include <bits/stdc++.h>
using namespace std;
int a[110];
int main() {
  int n, x;
  cin >> n >> x;
  for (int i = 1; i <= n; i++) cin >> a[i];
  sort(a + 1, a + n + 1);
  int k = 1, ans = 0;
  while (k <= n && a[k] < x) k++;
  ans = x - (k - 1);
  if (k <= n && a[k] == x) ans++;
  cout << ans;
}
