#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  bool f[101] = {false};
  cin >> n >> m;
  for (int i = 0, a; i < n; i++) {
    cin >> a;
    f[a] = true;
  }
  int ans = 0;
  if (f[m] == true) ans = 1;
  for (int i = 0; i < m; i++) {
    if (f[i] == false) ans++;
  }
  cout << ans;
  return 0;
}
