import scala.io.StdIn._

object Main extends App {

  val n = readInt()
  val as = readLine().split(" ").map(_.toInt)

  val m = scala.collection.mutable.Map[Int, Int]().withDefaultValue(0)
  
  for (i <- 2 to n) {
    m(as(i - 2)) += 1
  }

  for (i <- 1 to n) {
    println(m(i))
  }
}
