#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, ans = 0, b[105] = {0}, a;
  cin >> n >> x;
  for (int i = 0; i < n; i++) {
    cin >> a;
    b[a] = 1;
  }
  ans = b[x];
  for (int i = 0; i < x; i++) ans += !b[i];
  cout << ans << endl;
  return 0;
}
