#include<bits/stdc++.h>
using namespace std;

int n,m,a,b; 
int ans[100];

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