#include <bits/stdc++.h>
using namespace std;
int a[5001];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n, c = 0, k, i;
  cin >> n;
  for (i = 1; i <= n; i++) {
    cin >> k;
    a[k] = 1;
  }
  for (i = 1; i <= n; i++) c += (a[i] == 0);
  cout << c << endl;
  return 0;
}
