#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:16100100")
using namespace std;
template <typename T>
using min_heap = priority_queue<T, std::vector<T>, std::less<T>>;
template <typename T>
using max_heap = priority_queue<T, std::vector<T>, std::greater<T>>;
const double PI = 3.1415926535897932384626433832795;
void initIO() {
  std::ios::sync_with_stdio(false);
  std::cin.tie(0);
}
int a[200000];
int main() {
  initIO();
  int n;
  while (cin >> n) {
    for (int i = 0; i < (n); i++) cin >> a[i];
    for (int i = 0; i < (n); i++) {
      if (a[i] > 0) {
        a[a[i] - 1] = -1;
      }
    }
    int ans = 0;
    for (int i = 0; i < (n); i++)
      if (a[i] != -1) ans++;
    cout << ans << endl;
    break;
  }
  return 0;
}
