function Main(input) {
  // 文字列をsplitして配列に格納
  input = input.split("\n");
  tmp1 = input[0].split(" ");
  tmp2 = input[1].split(" ");

  let n = parseInt(tmp1[0], 10);
  let staff = tmp2.map(e => parseInt(e));

  for (let i = 1; i <= n; i++){
    console.log(staff.filter(function(x){return x==i}).length);
  }
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
