import java.util.*;

public class Main {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
        int n = scanner.nextInt();
        int m = scanner.nextInt();
        int[] count = new int[n];
        for (int i = 0; i < m; i++) {
            count[scanner.nextInt() - 1]++;
            count[scanner.nextInt() - 1]++;
        }
        for (int i : count) {
            System.out.println(i);
        }
    }
} import java.util.*; util.* java public class Main {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
        int n = scanner.nextInt();
        int m = scanner.nextInt();
        int[] count = new int[n];
        for (int i = 0; i < m; i++) {
            count[scanner.nextInt() - 1]++;
            count[scanner.nextInt() - 1]++;
        }
        for (int i : count) {
            System.out.println(i);
        }
    }
} Main static Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) public static void main(String[]$) {
        int n = scanner.nextInt();
        int m = scanner.nextInt();
        int[] count = new int[n];
        for (int i = 0; i < m; i++) {
            count[scanner.nextInt() - 1]++;
            count[scanner.nextInt() - 1]++;
        }
        for (int i : count) {
            System.out.println(i);
        }
    } main {
        int n = scanner.nextInt();
        int m = scanner.nextInt();
        int[] count = new int[n];
        for (int i = 0; i < m; i++) {
            count[scanner.nextInt() - 1]++;
            count[scanner.nextInt() - 1]++;
        }
        for (int i : count) {
            System.out.println(i);
        }
    } int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int m = scanner.nextInt(); m scanner.nextInt() scanner.nextInt scanner int[] count = new int[n]; count new int[n] n for (int i = 0; i < m; i++) {
            count[scanner.nextInt() - 1]++;
            count[scanner.nextInt() - 1]++;
        } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
            count[scanner.nextInt() - 1]++;
            count[scanner.nextInt() - 1]++;
        } {
            count[scanner.nextInt() - 1]++;
            count[scanner.nextInt() - 1]++;
        } count[scanner.nextInt() - 1]++ count[scanner.nextInt() - 1] count scanner.nextInt() - 1 scanner.nextInt() scanner.nextInt scanner 1 count[scanner.nextInt() - 1]++ count[scanner.nextInt() - 1] count scanner.nextInt() - 1 scanner.nextInt() scanner.nextInt scanner 1 for (int i : count) {
            System.out.println(i);
        } int i count {
            System.out.println(i);
        } {
            System.out.println(i);
        } System.out.println(i) System.out.println System.out System System.out i String[]$ $ public class Main {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
        int n = scanner.nextInt();
        int m = scanner.nextInt();
        int[] count = new int[n];
        for (int i = 0; i < m; i++) {
            count[scanner.nextInt() - 1]++;
            count[scanner.nextInt() - 1]++;
        }
        for (int i : count) {
            System.out.println(i);
        }
    }
} public class Main {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
        int n = scanner.nextInt();
        int m = scanner.nextInt();
        int[] count = new int[n];
        for (int i = 0; i < m; i++) {
            count[scanner.nextInt() - 1]++;
            count[scanner.nextInt() - 1]++;
        }
        for (int i : count) {
            System.out.println(i);
        }
    }
} Main
import java.util.*;

public class Main {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
        int n = scanner.nextInt();
        int m = scanner.nextInt();
        int[] count = new int[n];
        for (int i = 0; i < m; i++) {
            count[scanner.nextInt() - 1]++;
            count[scanner.nextInt() - 1]++;
        }
        for (int i : count) {
            System.out.println(i);
        }
    }
}