#include <stdio.h>

int N;
int A[222222];


int kotae[222222];


int main(void) {
	int i;
	if (scanf("%d", &N) != 1) return 1;
	for (i = 2; i <= N; i++) {
		if (scanf("%d", &A[i]) != 1) return 1;
	}

	for (i = 2; i <= N; i++) {
		kotae[A[i]]++;
	}

	for (i = 1; i <= N; i++) {
		printf("%d\n", kotae[i]);
	}

	return 0;
}
