#include<stdio.h>
int main(){
  int n,i;
  scanf("%d",&n);
  int a[n+1],ans[n+1]={};
  for(i=2;i<n+1;i++){
    scanf("%d",&a[i]);
    ans[a[i]]++
  }
  for(i=1:i<n+1;i++)printf("%d\n",ans[i]);
  return 0;
}
