#include <bits/stdc++.h>
using namespace std;
int a[1005];
int main() {
  int n, x;
  scanf("%d %d", &n, &x);
  int cnt = 0, cnt1 = 0;
  for (int i = 1; i <= n; i++) {
    int p;
    scanf("%d", a + i);
    if (a[i] == x) cnt++;
    if (a[i] < x) cnt1++;
  }
  if (cnt) {
    printf("%d", x - cnt1 + 1);
  } else
    printf("%d", x - cnt1);
}
