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