'use strict'
function main(inp) {
  inp = inp.trim().split('\n');
  let N = inp[0].split(' ')*1;
  let As = inp[1].split(' ').map(x => x*1);
  let ansArr = {};
  for(let i = 0; i < N - 1; i++){
    if(ansArr[As[i]] == undefined){
    	ansArr[As[i]] = 1; 
    }
    else {
        ansArr[As[i]]++; 
    }
  }
  for(let j = 1; j <= N; j++){
    console.log(ansArr[j] ? ansArr[j] : 0);
  }  
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));
