#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x;
  cin >> n >> x;
  int a[n + 5];
  int hash[500] = {0};
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < n; i++) hash[a[i]]++;
  int count = 0;
  for (int i = 0; i < x; i++) {
    if (hash[i] == 0) count++;
  }
  for (int i = 0; i < n; i++) {
    if (a[i] == x) count++;
  }
  cout << count;
  return 0;
}
