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