#include <bits/stdc++.h>
using namespace std;
const int MAXN = 110;
bool mark[MAXN];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n, x, w;
  cin >> n >> x;
  for (int i = 0; i < n; i++) {
    cin >> w;
    mark[w] = true;
  }
  int ans = 0, i = -1;
  if (mark[x]) ans++;
  while (++i < x)
    if (!mark[i]) ans++;
  cout << ans << endl;
  return 0;
}
