import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[] road = new int[n];
        Arrays.fill(road, 0);

        for (int i = 0; i < m; i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();

            road[a - 1]++;
            road[b - 1]++;
        }

        for (int i = 0; i < n; i++) {
            System.out.println(road[i]);
        }
    }
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[] road = new int[n];
        Arrays.fill(road, 0);

        for (int i = 0; i < m; i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();

            road[a - 1]++;
            road[b - 1]++;
        }

        for (int i = 0; i < n; i++) {
            System.out.println(road[i]);
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[] road = new int[n];
        Arrays.fill(road, 0);

        for (int i = 0; i < m; i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();

            road[a - 1]++;
            road[b - 1]++;
        }

        for (int i = 0; i < n; i++) {
            System.out.println(road[i]);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[] road = new int[n];
        Arrays.fill(road, 0);

        for (int i = 0; i < m; i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();

            road[a - 1]++;
            road[b - 1]++;
        }

        for (int i = 0; i < n; i++) {
            System.out.println(road[i]);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int m = sc.nextInt(); m sc.nextInt() sc.nextInt sc int[] road = new int[n]; road new int[n] n Arrays.fill(road, 0) Arrays.fill Arrays road 0 for (int i = 0; i < m; i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();

            road[a - 1]++;
            road[b - 1]++;
        } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
            int a = sc.nextInt();
            int b = sc.nextInt();

            road[a - 1]++;
            road[b - 1]++;
        } {
            int a = sc.nextInt();
            int b = sc.nextInt();

            road[a - 1]++;
            road[b - 1]++;
        } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc road[a - 1]++ road[a - 1] road a - 1 a 1 road[b - 1]++ road[b - 1] road b - 1 b 1 for (int i = 0; i < n; i++) {
            System.out.println(road[i]);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            System.out.println(road[i]);
        } {
            System.out.println(road[i]);
        } System.out.println(road[i]) System.out.println System.out System System.out road[i] road i String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[] road = new int[n];
        Arrays.fill(road, 0);

        for (int i = 0; i < m; i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();

            road[a - 1]++;
            road[b - 1]++;
        }

        for (int i = 0; i < n; i++) {
            System.out.println(road[i]);
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[] road = new int[n];
        Arrays.fill(road, 0);

        for (int i = 0; i < m; i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();

            road[a - 1]++;
            road[b - 1]++;
        }

        for (int i = 0; i < n; i++) {
            System.out.println(road[i]);
        }
    }
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[] road = new int[n];
        Arrays.fill(road, 0);

        for (int i = 0; i < m; i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();

            road[a - 1]++;
            road[b - 1]++;
        }

        for (int i = 0; i < n; i++) {
            System.out.println(road[i]);
        }
    }
}
