#include <algorithm>
#include <iostream>
#include <string>
using namespace std;
#define PI 3.14159265359
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define SIZE_OF_ARRAY(array) (sizeof(array) / sizeof(array[0]))

int main() {
  int N;
  cin >> N;

  int A[N - 1];
  rep(i, N - 1) cin >> A[i];

  int count[N];
  rep(i, N) count[i] = 0;

  rep(i, N - 1) { count[A[i] - 1]++; }
  rep(i, N) cout << count[i] << endl;

  return 0;
}
