import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String[] nm = scanner.nextLine().split(" ", 2);
        int n = Integer.parseInt(nm[0]);
        int m = Integer.parseInt(nm[1]);

        int[] roadCount = new int[n];
        for (int i = 0; i < m; i++) {
            String[] ab = scanner.nextLine().split(" ", 2);
            int a = Integer.parseInt(ab[0]) - 1;
            int b = Integer.parseInt(ab[1]) - 1;
            roadCount[a]++;
            roadCount[b]++;
        }

        for (int i = 0; i < n; i++) {
            System.out.println(roadCount[i]);
        }
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String[] nm = scanner.nextLine().split(" ", 2);
        int n = Integer.parseInt(nm[0]);
        int m = Integer.parseInt(nm[1]);

        int[] roadCount = new int[n];
        for (int i = 0; i < m; i++) {
            String[] ab = scanner.nextLine().split(" ", 2);
            int a = Integer.parseInt(ab[0]) - 1;
            int b = Integer.parseInt(ab[1]) - 1;
            roadCount[a]++;
            roadCount[b]++;
        }

        for (int i = 0; i < n; i++) {
            System.out.println(roadCount[i]);
        }
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String[] nm = scanner.nextLine().split(" ", 2);
        int n = Integer.parseInt(nm[0]);
        int m = Integer.parseInt(nm[1]);

        int[] roadCount = new int[n];
        for (int i = 0; i < m; i++) {
            String[] ab = scanner.nextLine().split(" ", 2);
            int a = Integer.parseInt(ab[0]) - 1;
            int b = Integer.parseInt(ab[1]) - 1;
            roadCount[a]++;
            roadCount[b]++;
        }

        for (int i = 0; i < n; i++) {
            System.out.println(roadCount[i]);
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        String[] nm = scanner.nextLine().split(" ", 2);
        int n = Integer.parseInt(nm[0]);
        int m = Integer.parseInt(nm[1]);

        int[] roadCount = new int[n];
        for (int i = 0; i < m; i++) {
            String[] ab = scanner.nextLine().split(" ", 2);
            int a = Integer.parseInt(ab[0]) - 1;
            int b = Integer.parseInt(ab[1]) - 1;
            roadCount[a]++;
            roadCount[b]++;
        }

        for (int i = 0; i < n; i++) {
            System.out.println(roadCount[i]);
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String[] nm = scanner.nextLine().split(" ", 2); nm scanner.nextLine().split(" ", 2) scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " 2 int n = Integer.parseInt(nm[0]); n Integer.parseInt(nm[0]) Integer.parseInt Integer nm[0] nm 0 int m = Integer.parseInt(nm[1]); m Integer.parseInt(nm[1]) Integer.parseInt Integer nm[1] nm 1 int[] roadCount = new int[n]; roadCount new int[n] n for (int i = 0; i < m; i++) {
            String[] ab = scanner.nextLine().split(" ", 2);
            int a = Integer.parseInt(ab[0]) - 1;
            int b = Integer.parseInt(ab[1]) - 1;
            roadCount[a]++;
            roadCount[b]++;
        } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
            String[] ab = scanner.nextLine().split(" ", 2);
            int a = Integer.parseInt(ab[0]) - 1;
            int b = Integer.parseInt(ab[1]) - 1;
            roadCount[a]++;
            roadCount[b]++;
        } {
            String[] ab = scanner.nextLine().split(" ", 2);
            int a = Integer.parseInt(ab[0]) - 1;
            int b = Integer.parseInt(ab[1]) - 1;
            roadCount[a]++;
            roadCount[b]++;
        } String[] ab = scanner.nextLine().split(" ", 2); ab scanner.nextLine().split(" ", 2) scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " 2 int a = Integer.parseInt(ab[0]) - 1; a Integer.parseInt(ab[0]) - 1 Integer.parseInt(ab[0]) Integer.parseInt Integer ab[0] ab 0 1 int b = Integer.parseInt(ab[1]) - 1; b Integer.parseInt(ab[1]) - 1 Integer.parseInt(ab[1]) Integer.parseInt Integer ab[1] ab 1 1 roadCount[a]++ roadCount[a] roadCount a roadCount[b]++ roadCount[b] roadCount b for (int i = 0; i < n; i++) {
            System.out.println(roadCount[i]);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            System.out.println(roadCount[i]);
        } {
            System.out.println(roadCount[i]);
        } System.out.println(roadCount[i]) System.out.println System.out System System.out roadCount[i] roadCount i String[] args args
import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String[] nm = scanner.nextLine().split(" ", 2);
        int n = Integer.parseInt(nm[0]);
        int m = Integer.parseInt(nm[1]);

        int[] roadCount = new int[n];
        for (int i = 0; i < m; i++) {
            String[] ab = scanner.nextLine().split(" ", 2);
            int a = Integer.parseInt(ab[0]) - 1;
            int b = Integer.parseInt(ab[1]) - 1;
            roadCount[a]++;
            roadCount[b]++;
        }

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