#include <bits/stdc++.h>
using namespace std;
const int maxn = 100 + 10;
int vis[maxn];
int main() {
  int n, x, a;
  while (cin >> n >> x) {
    memset(vis, 0, sizeof(vis));
    for (int i = 0; i < n; i++) cin >> a, vis[a] = 1;
    int ans = 0, i = 0;
    while (i < x) {
      if (!vis[i]) ans++;
      i++;
    }
    if (vis[x]) ans++;
    cout << ans << endl;
  }
  return 0;
}
