#include <bits/stdc++.h>
int main() {
  int n;
  int a[200000] = {0};
  scanf("%d", &n);
  for (int i = 0; i < n - 1; i++) {
    int b;
    scanf("%d", &b);
    a[b - 1]++;
  }
  for (int i = 0; i < n; i++) {
    printf("%d\n", a[i]);
  }
  return 0;
}
