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

using namespace std;

int ans[55];

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