#include <bits/stdc++.h>
using namespace std;
int vis[1000010], n, t;
int main() {
  cin >> n;
  for (register int i = 1, tmp; i <= n; ++i) cin >> tmp, vis[tmp] = 1;
  for (register int i = 1; i <= n; ++i) t += (!vis[i]);
  cout << t;
}
