import java.io.*;
import java.util.*;
/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
public static void main
(String[] args
) {
Scanner in
= new Scanner
(System.
in); int n, m, i, buf;
n = in.nextInt();
m = in.nextInt();
int[] a = new int [n];
for(i = 0; i < n; a[i] = 0, ++i);
for(i = 0; i < 2*m ;buf = in.nextInt(), ++a[buf - 1], ++i);
for(i = 0; i < n; ++i){
out.println(a[i]);
}
out.flush();
}
}
aW1wb3J0IGphdmEuaW8uKjsKaW1wb3J0IGphdmEudXRpbC4qOwovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KcHVibGljIGNsYXNzIE1haW4KewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpCgl7CgkJU2Nhbm5lciBpbiA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CgkJUHJpbnRXcml0ZXIgb3V0ID0gbmV3IFByaW50V3JpdGVyKFN5c3RlbS5vdXQpOwoJCWludCBuLCBtLCBpLCBidWY7CgkJbiA9IGluLm5leHRJbnQoKTsKCQltID0gaW4ubmV4dEludCgpOwoJCWludFtdIGEgPSBuZXcgaW50IFtuXTsKCQlmb3IoaSA9IDA7IGkgPCBuOyBhW2ldID0gMCwgKytpKTsKCQlmb3IoaSA9IDA7IGkgPCAyKm0gO2J1ZiA9IGluLm5leHRJbnQoKSwgKythW2J1ZiAtIDFdLCArK2kpOwoJCWZvcihpID0gMDsgaSA8IG47ICsraSl7CgkJCW91dC5wcmludGxuKGFbaV0pOwoJCX0KCQlvdXQuZmx1c2goKTsKCX0KfQ==