#include <bits/stdc++.h>
using namespace std;
const int mod = 1000000007;
const int inf = 1000000001;
const int mx = 100005;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  map<int, int> m;
  int x;
  for (int i = 0; i < n; i++) {
    cin >> x;
    if (x >= 1 && x <= n) m[x]++;
  }
  int countone(0);
  for (auto x : m) {
    if (m[x.first] > 0) countone += 1;
  }
  cout << n - countone;
  return 0;
}
