#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x;
  cin >> n >> x;
  int ans = x;
  while (n--) {
    int a;
    cin >> a;
    if (a < x) ans--;
    if (a == x) ans++;
  }
  cout << ans << endl;
  return 0;
}
