import std.stdio, std.string, std.range, std.algorithm, std.math, std.typecons, std.conv;                                                                                                                                                                                                                                                                                               void main() {                                                                                                                                                                                 int M, N;                                                                                                                                                                                   readf("%d %d\n", &N, &M);                                                                                                                                                                   int[] cnt = new int[N];                                                                                                                                                                     foreach (i; 0..M) {                                                                                                                                                                           int a, b;                                                                                                                                                                                   readf("%d %d\n", &a, &b);                                                                                                                                                                   cnt[a-1]++;                                                                                                                                                                                 cnt[b-1]++;                                                                                                                                                                               }                                                                                                                                                                                           cnt.each!(a => a.writeln);                                                                                                                                                                }       