#include <bits/stdc++.h>
using namespace std;
int main() {
  int number;
  int boss[200010] = {0}, count[200010] = {0};
  std::cin >> number;
  for (int i = 2; i <= number; i++) {
    std::cin >> boss[i];
  }
  for (int i = 2; i <= number; i++) {
    count[boss[i]]++;
  }
  for (int i = 1; i <= number; i++) {
    std::cout << count[i] << endl;
  }
  return 0;
}
