#include <bits/stdc++.h>
using namespace std;
int a[103];
int main() {
  int n, m;
  cin >> n >> m;
  for (int i = 1; i <= n; i++) {
    int x;
    scanf("%d", &x);
    a[x]++;
  }
  int s = 0;
  for (int i = 0; i < m; i++) {
    if (a[i]) s++;
  }
  cout << m - s + a[m] << endl;
}
