#include <bits/stdc++.h>
using namespace std;
int main(int argc, char** argv) {
  int n, m, pom = 0, x, rez = 0, k = 0;
  cin >> n >> m;
  int niz[n];
  rez = m;
  for (int i = 0; i < n; i++) {
    cin >> niz[i];
  }
  for (int i = 0; i < n; i++) {
    if (niz[i] < m) {
      rez--;
      k++;
    } else if (niz[i] == m)
      rez++;
  }
  cout << rez;
  return 0;
}
