#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 5;
const int N = 1e6 + 5;
int a[105];
int main() {
  int n, x, i, c = 0, ans = 0;
  cin >> n >> x;
  for (i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] == x)
      ans++;
    else if (a[i] < x) {
      c++;
    }
  }
  ans += x - c;
  cout << ans << endl;
  return 0;
}
