"use strict";

const main = arg => {

  const input = arg.trim().split("\n");

  const N = parseInt(input[0].split(" ")[0]);
  //const M = parseInt(input[0].split(" ")[1]);
  const A = input[1].split(" ").map(n=>parseInt(n));
  let result = [];
  
  for(let i = 0; i < N; i++ ) {
  	result.push(0)
  }
  for(let j = 0; j < A.length; j++ ) {
	result[A[j] - 1] += 1;
  }
  result.forEach(a => console.log(a))
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));  