public void solve() throws IOException {
    int size = nextInt();
    int[] arr = new int[size];

    for (int x = 0; x < size; x++) {
      int a = nextInt();
      if (a <= size) {
        arr[a - 1] = 1;
      }
    }

    int count = 0;
    for (int x = 0; x < size; x++)
      if (arr[x] == 0)
        count++;

    System.out.println(count);
  }