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