import std.stdio, std.conv, std.string, std.algorithm, std.array;

void main()
{
        int n, m;

        scanf("%d %d", &n, &m);

        int[] map;
        map.length=n;

        for (int i = 0; i < m; i++) {
                int from, to;
                scanf("%d %d", &from, &to);

                from--;
                to--;

                map[from]++;
                map[to]++;
        }

        foreach(routenum; map) {
                writeln(routenum);
        }

}