#include <bits/stdc++.h>
const int MAXN = 1e3 + 5;
int vis[MAXN + 5];
int N, x;
int main() {
  scanf("%d %d", &N, &x);
  for (int i = 1; i <= N; i++) {
    int t;
    scanf("%d", &t);
    vis[t]++;
  }
  int sum = 0;
  if (vis[x] > 0) sum++;
  for (int i = 0; i < x; i++)
    if (!vis[i]) sum++;
  printf("%d\n", sum);
}
