#include<iostream>
#include<cstring>
#include<cstdio>
#include<cmath>
#include<algorithm>
#include<string>

using namespace std;
const int maxn = 105;
int a[maxn];
int main()
{
	int n, m;
	cin >> n >> m;
	for(int i = 1; i <= m; i++){
		int l, r;
		cin >> l >> r;
		a[l]++;
		a[r]++;
	}
	for(int i = 1; i <= n; i++)
		cout << a[i] << endl;
	return 0;
}