#include <bits/stdc++.h>
using namespace std;
bool sadrzi(int a[], int n, int b) {
  for (int i = 0; i < n; i++) {
    if (a[i] == b) return false;
  }
  return true;
}
int brojPoteza(int a[], int n, int m) {
  int br = 0;
  for (int i = 0; i < m; i++) {
    if (sadrzi(a, n, i) == true) br++;
  }
  if (sadrzi(a, n, m) == false) br++;
  return br;
}
int main() {
  int n, m;
  cin >> n >> m;
  int a[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  cout << brojPoteza(a, n, m);
  return 0;
}
