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