#include <bits/stdc++.h>
using namespace std;
int main() {
  string k, p, s;
  long long a, b, c[1000], d = 0, e = 0, f, g, h, i, j, l, m, n, o, q, r, t, u,
                           v, w, x, y, z;
  cin >> a >> b;
  for (i = 1; i <= a; i++) {
    cin >> c[i];
    if (c[i] == b) {
      d++;
    } else {
      if (c[i] < b) {
        e++;
      }
    }
  }
  cout << d + b - e;
}
