#include <iostream>

int main()
{
	int n, m, a[100] = { 0 };
	std::cin >> n >> m;
	while (m--)
	{
		int x, y;
		std::cin >> x >> y;
		++a[x - 1];
		++a[y - 1];
	}
	for (int i = 0; i < n; i++)
		std::cout << a[i] << "\n";
		
}