#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x;
  scanf("%d%d", &n, &x);
  int arr[1000] = {0};
  int c = 0;
  for (int i = 0; i < n; i++) {
    int y;
    scanf("%d", &y);
    arr[y] = 1;
  }
  for (int i = 0; i < x; i++) {
    if (!arr[i]) c++;
  }
  if (arr[x]) c++;
  printf("%d", c);
  return 0;
}
