#include<stdio.h>

int main(void)
{
  int N,i,j;
  int c;
  
  scanf("%d", &N);
  int a[N]={0},b[N]={0};
  
  for(i=1;i<N;i++){
    scanf("%d", &a[i]);
    c=a[i]-1;
    b[c]++;
  }
  
  for(j=0;j<N;j++){
    printf("%d\n",b[j]);
  }
  
  return 0;
}