#include <bits/stdc++.h>
using namespace std;
void printpair(int a, int b) {
  cout << "printing first: " << a << " printing second: " << b << endl;
}
int solve() {
  int n;
  cin >> n;
  int count = 0;
  set<int> s;
  for (int i = 0; i < n; i++) {
    int t;
    cin >> t;
    s.insert(t);
  }
  for (int i = 1; i <= n; i++) {
    if (s.find(i) != s.end()) {
      count++;
    }
  }
  return n - count;
}
int main() { cout << solve() << endl; }
