#include <bits/stdc++.h>
using namespace std;
int p_arr[50005];
int main() {
  int n, in, cnt;
  std::cin >> n;
  for (int i = 1; i <= n; i++) {
    std::cin >> in;
    p_arr[in] = 1;
  }
  cnt = 0;
  for (int i = 1; i <= n; i++)
    if (p_arr[i] != 1) cnt++;
  std::cout << cnt << '\n';
  return 0;
}
