#include <bits/stdc++.h>
int main() {
  int n, mex, type[101] = {0}, cnt = 0, inp;
  scanf("%d %d", &n, &mex);
  for (int i = 0; i < n; i++) {
    scanf("%d", &inp);
    type[inp]++;
  }
  for (int i = 0; i < mex; i++) {
    if (type[i] == 0) {
      cnt++;
    }
  }
  if (type[mex] > 0) {
    cnt++;
  }
  printf("%d\n", cnt);
}
