#include <bits/stdc++.h>
using namespace std;
long long arr[105];
vector<long long> v;
int main() {
  long long i, j, k, n, m, x, cnt = 0, count = 0, t, y, p, q, maxx = 0,
                              minn = 1 << 30, a, b, test = 0, len, sum = 0, c;
  string s, s1, s2;
  scanf("%lld", &n), scanf("%lld", &k);
  for (i = 0; i < n; i++) {
    scanf("%lld", &a);
    arr[a]++;
    maxx = max(maxx, a);
    v.push_back(a);
  }
  cnt = 0;
  for (i = 0; i <= k; i++) {
    if (arr[i] == 0 && i == k) {
      continue;
    }
    if (arr[i] == 1 && k == i) {
      cnt++;
      continue;
    }
    if (arr[i] == 0) {
      cnt++;
    }
  }
  printf("%lld\n", cnt);
}
