#include<stdio.h>

#define MAX_N 200001

int main(void){

    int N,A[MAX_N],i,ans[MAX_N] = {0};

    scanf("%d",&N);
    for(i = 2;i <= N;i++) scanf("%d",&A[i]);
    for(i = 2;i <= N;i++) ans[A[i]]++;
    for(i = 1;i <= N;i++) printf("%d\n",ans[i]);
    return 0;
}