#include <bits/stdc++.h>
using namespace std;
const int MAX_N = 5 * 1000 + 10;
int a[MAX_N], b[MAX_N];
int main() {
  int n, tedad = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    b[a[i]] = b[a[i]] + 1;
  }
  for (int i = 1; i <= n; i++)
    if (b[i] == 0) tedad = tedad + 1;
  cout << tedad << endl;
  return 0;
}
