#include <iostream>
#include <cstdint>

using namespace std;

uint32_t a[200001];

int main(int argc, char const* argv[]) {
	uint32_t N;

	cin >> N;

	for (uint32_t i = 2; i <= N; i++) {
		uint32_t tmp;
		cin >> tmp;

		a[tmp]++;
	}

	for (uint32_t i = 1; i <= N; i++) {
		cout << a[i] << endl;
	}

	return 0;
}
