#include <stdio.h>
 
int main(void) {
  int num;
  scanf("%d",&num);
  int work[num];
  int i;
  for (i = 0; i < num;++i) {
	  work[i] = 0;
  }
	  for (i = 0; i < num; ++i)
	  {
		  int ptr;
		  scanf("%d", &ptr);
		  work[ptr - 1] = work[ptr - 1] + 1;
	  }
  for(i = 0;i < num;++i) {
    if(i < num -1) {
    	printf("%d\n",work[i]);
    }
    else {
      printf("%d",work[i]);
    }
  }
return 0;
}