#include <iostream>
using namespace std;
int main() {
int n = 0 , m = 0, i, buf;
cin >> n >> m;
int *a = new int [n];
for(i = 0; i < n; a[i] = 0, ++i)
for(i = 0 , buf; i < 2*m ; cin >> buf, ++a[buf - 1], ++i);
for(i = 0; i < n; ++i){
cout << a[i] << endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgIGludCBuID0gMCAsIG0gPSAwLCBpLCBidWY7CiAgIGNpbiA+PiBuID4+IG07CiAgIGludCAqYSA9IG5ldyBpbnQgW25dOwogICBmb3IoaSA9IDA7IGkgPCBuOyBhW2ldID0gMCwgKytpKQogICBmb3IoaSA9IDAgLCBidWY7IGkgPCAyKm0gOyBjaW4gPj4gYnVmLCArK2FbYnVmIC0gMV0sICsraSk7CiAgIGZvcihpID0gMDsgaSA8IG47ICsraSl7CiAgIAkJIGNvdXQgPDwgYVtpXSA8PCBlbmRsOwogICB9CiAgIHJldHVybiAwOwp9