#include <bits/stdc++.h>
using namespace std;
const int N = 200000;
int n;
bool op[N + 5];
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    int in;
    scanf("%d", &in);
    if (in != i + 1) op[in] = true;
  }
  int an = n;
  for (int i = 1; i < n; i++)
    if (op[i]) an--;
  printf("%d", an);
  return 0;
}
