#include <iostream>
#include <set>
using namespace std;

int a[51];
int main(){
	int n,m;
	int u,v;
	
	cin >> n >> m;
	while(m--){
		cin >> u >> v;
		a[u]++;
		a[v]++;
	}
	for(int i = 1;i<=n;i++){
		cout << a[i] << endl;
	}
} 