#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, n, maxn = 5001;
  int a[maxn], b[maxn];
  int z = 0;
  cin >> n;
  for (i = 1; i <= n; i++) {
    cin >> a[i];
    b[i] = -1;
  }
  for (i = 1; i <= n; i++) b[a[i]] = 1;
  for (i = 1; i <= n; i++)
    if (b[i] == -1) z++;
  cout << z << endl;
  return 0;
}
