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