import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        final int N = sc.nextInt();
        final int M = sc.nextInt();

        final int[] cities = new int[N];

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

        for (int city: cities) {
            System.out.println(city);
        }
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        final int N = sc.nextInt();
        final int M = sc.nextInt();

        final int[] cities = new int[N];

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

        for (int city: cities) {
            System.out.println(city);
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        final int N = sc.nextInt();
        final int M = sc.nextInt();

        final int[] cities = new int[N];

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

        for (int city: cities) {
            System.out.println(city);
        }
    } main {
        Scanner sc = new Scanner(System.in);

        final int N = sc.nextInt();
        final int M = sc.nextInt();

        final int[] cities = new int[N];

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

        for (int city: cities) {
            System.out.println(city);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) final int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc final int M = sc.nextInt(); M sc.nextInt() sc.nextInt sc final int[] cities = new int[N]; cities new int[N] N for (int i = 0; i < M; i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            cities[a-1]++;
            cities[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();
            cities[a-1]++;
            cities[b-1]++;
        } {
            int a = sc.nextInt();
            int b = sc.nextInt();
            cities[a-1]++;
            cities[b-1]++;
        } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc cities[a-1]++ cities[a-1] cities a-1 a 1 cities[b-1]++ cities[b-1] cities b-1 b 1 for (int city: cities) {
            System.out.println(city);
        } int city cities {
            System.out.println(city);
        } {
            System.out.println(city);
        } System.out.println(city) System.out.println System.out System System.out city String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        final int N = sc.nextInt();
        final int M = sc.nextInt();

        final int[] cities = new int[N];

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

        for (int city: cities) {
            System.out.println(city);
        }
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        final int N = sc.nextInt();
        final int M = sc.nextInt();

        final int[] cities = new int[N];

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

        for (int city: cities) {
            System.out.println(city);
        }
    }
} Main
import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        final int N = sc.nextInt();
        final int M = sc.nextInt();

        final int[] cities = new int[N];

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

        for (int city: cities) {
            System.out.println(city);
        }
    }
}
