import std.algorithm;
import std.array;
import std.conv;
import std.math;
import std.range;
import std.stdio;
import std.string;
import std.typecons;

T read(T)() { return readln.chomp.to!T; }
T[] reads(T)() { return readln.split.to!(T[]); }
alias readint = read!int;
alias readints = reads!int;

void main() {
    auto nm = readints;
    int n = nm[0], m = nm[1];

    auto g = new int[n + 1];
    for (int i = 0; i < m; i++) {
        auto ab = readints;
        int a = ab[0], b = ab[1];
        g[a]++;
        g[b]++;
    }

    foreach (i; 1..n+1) {
        writeln(g[i]);
    }
}
