#include <bits/stdc++.h>
using namespace std;
const int N = 106;
int a[N];
int n, m, s;
void work(void) {
  int i;
  for (i = 0; i < m; i++)
    if (a[i] == 0) s++;
  if (a[m] == 1) s++;
  cout << s;
}
int main(void) {
  int i, j;
  cin >> n >> m;
  for (i = 1; i <= n; i++) {
    cin >> j;
    a[j] = 1;
  }
  work();
  return 0;
}
