#include <stdio.h>

int main()
{
	int i, N, A[200001];
	scanf("%d", &N);
	for (i = 2; i <= N; i++) scanf("%d", &(A[i]));
	
	int count[200001] = {};
	for (i = 2; i <= N; i++) count[A[i]]++;
	for (i = 1; i <= N; i++) printf("%d\n", count[i]);
	fflush(stdout);
	return 0;
}