#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
bool mark[N];
int main() {
  ios_base::sync_with_stdio(0);
  int n, ans = 0;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    int x;
    cin >> x;
    if (mark[x] || x > n) ans++;
    mark[x] = 1;
  }
  cout << ans;
  return 0;
}
