import java.util.*;
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int m =	Integer.parseInt(sc.next());
	int[] a	= new int[n+1];
	for(int i = 0; i<m; i++) {
            a[Integer.parseInt(sc.next())]++;
            a[Integer.parseInt(sc.next())]++;
        }
	for(int i = 1; i<n+1; i++) {
            System.out.println(a[i]);
        }
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int m =	Integer.parseInt(sc.next());
	int[] a	= new int[n+1];
	for(int i = 0; i<m; i++) {
            a[Integer.parseInt(sc.next())]++;
            a[Integer.parseInt(sc.next())]++;
        }
	for(int i = 1; i<n+1; i++) {
            System.out.println(a[i]);
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int m =	Integer.parseInt(sc.next());
	int[] a	= new int[n+1];
	for(int i = 0; i<m; i++) {
            a[Integer.parseInt(sc.next())]++;
            a[Integer.parseInt(sc.next())]++;
        }
	for(int i = 1; i<n+1; i++) {
            System.out.println(a[i]);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int m =	Integer.parseInt(sc.next());
	int[] a	= new int[n+1];
	for(int i = 0; i<m; i++) {
            a[Integer.parseInt(sc.next())]++;
            a[Integer.parseInt(sc.next())]++;
        }
	for(int i = 1; i<n+1; i++) {
            System.out.println(a[i]);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int m =	Integer.parseInt(sc.next()); m Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] a	= new int[n+1]; a new int[n+1] n+1 n 1 for(int i = 0; i<m; i++) {
            a[Integer.parseInt(sc.next())]++;
            a[Integer.parseInt(sc.next())]++;
        } int i = 0; int i = 0; i 0 i<m i m i++ i++ i {
            a[Integer.parseInt(sc.next())]++;
            a[Integer.parseInt(sc.next())]++;
        } {
            a[Integer.parseInt(sc.next())]++;
            a[Integer.parseInt(sc.next())]++;
        } a[Integer.parseInt(sc.next())]++ a[Integer.parseInt(sc.next())] a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc a[Integer.parseInt(sc.next())]++ a[Integer.parseInt(sc.next())] a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc for(int i = 1; i<n+1; i++) {
            System.out.println(a[i]);
        } int i = 1; int i = 1; i 1 i<n+1 i n+1 n 1 i++ i++ i {
            System.out.println(a[i]);
        } {
            System.out.println(a[i]);
        } System.out.println(a[i]) System.out.println System.out System System.out a[i] a i String[] args args
import java.util.*;
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int m =	Integer.parseInt(sc.next());
	int[] a	= new int[n+1];
	for(int i = 0; i<m; i++) {
            a[Integer.parseInt(sc.next())]++;
            a[Integer.parseInt(sc.next())]++;
        }
	for(int i = 1; i<n+1; i++) {
            System.out.println(a[i]);
        }
    }
}