#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  int n, m;
  cin >> n >> m;
  vector<int> arr(105, 0);
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    arr[x] = 1;
  }
  int ans = 0;
  for (int i = 0; i < m; i++)
    if (arr[i] == 0) ans++;
  if (arr[m] == 1) ans++;
  cout << ans;
  return 0;
}
