#include <bits/stdc++.h>
using namespace std;
const auto INF = 0x3f3f3f3f;
const int N = 1e2 + 5;
int a[N];
int visit[N];
int main() {
  int n, x;
  scanf("%d%d", &n, &x);
  for (int i = 1; i <= n; i++) {
    scanf("%d", &a[i]);
    visit[a[i]]++;
  }
  sort(a + 1, a + 1 + n);
  int sum = 0;
  for (int i = 0; i < x; i++) {
    if (!visit[i]) {
      sum++;
    }
  }
  if (visit[x]) {
    sum += visit[x];
  }
  printf("%d\n", sum);
}
