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