#include <bits/stdc++.h>
using namespace std;
int n;
int a[100005];
int x;
int cont;
int main() {
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> x;
    a[x]++;
  }
  for (int i = 1; i <= n; i++) {
    if (a[i] == 0) {
      cont++;
    }
  }
  cout << cont << endl;
  return 0;
}
