import scala.collection.mutable

object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val N = sc.nextInt()
  val hashMap = mutable.Map[Int, Int]()
  for (_ <- 2 to N) {
    val a = sc.nextInt()
    val count = hashMap.getOrElse(a, 0)
    hashMap.update(a, count + 1)
  }
  1.to(N).foreach(i => println(hashMap.getOrElse(i, 0)))
}
