#include <iostream>
#include <string>
#include <vector>
#include <cstdlib>
#include <algorithm>
#define _USE_MATH_DEFINES
#include<math.h>
#define in(n) for (int i=0; i<n;i++)
#define inj(n)for (int j=0; j<n;j++)
using namespace std;

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

	vector<int> A(N);
	in(N - 1) {
		int tmp;
		cin >> tmp;
		A[tmp - 1]++;
	}

	for (auto&& a : A) {
		cout << a << endl;
	}
	return 0;
}