import java.util.Scanner;
import java.util.Stack;

class Main {

    public static void main(String[] args) {
        new Main().compute();
    }

    void compute() {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int M = sc.nextInt();
        int[] nanbon = new int[N];
        for (int i = 0; i < M; i++) {
            nanbon[sc.nextInt() - 1]++;
            nanbon[sc.nextInt() - 1]++;
        }
        for (int i = 0; i < N; i++) {
            System.out.println(nanbon[i]);
        }
    }
} import java.util.Scanner; Scanner java.util import java.util.Stack; Stack java.util class Main {

    public static void main(String[] args) {
        new Main().compute();
    }

    void compute() {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int M = sc.nextInt();
        int[] nanbon = new int[N];
        for (int i = 0; i < M; i++) {
            nanbon[sc.nextInt() - 1]++;
            nanbon[sc.nextInt() - 1]++;
        }
        for (int i = 0; i < N; i++) {
            System.out.println(nanbon[i]);
        }
    }
} Main public static void main(String[] args) {
        new Main().compute();
    } main {
        new Main().compute();
    } new Main().compute() new Main().compute new Main() String[] args args void compute() {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int M = sc.nextInt();
        int[] nanbon = new int[N];
        for (int i = 0; i < M; i++) {
            nanbon[sc.nextInt() - 1]++;
            nanbon[sc.nextInt() - 1]++;
        }
        for (int i = 0; i < N; i++) {
            System.out.println(nanbon[i]);
        }
    } compute {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int M = sc.nextInt();
        int[] nanbon = new int[N];
        for (int i = 0; i < M; i++) {
            nanbon[sc.nextInt() - 1]++;
            nanbon[sc.nextInt() - 1]++;
        }
        for (int i = 0; i < N; i++) {
            System.out.println(nanbon[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[] nanbon = new int[N]; nanbon new int[N] N for (int i = 0; i < M; i++) {
            nanbon[sc.nextInt() - 1]++;
            nanbon[sc.nextInt() - 1]++;
        } int i = 0; int i = 0; i 0 i < M i M i++ i++ i {
            nanbon[sc.nextInt() - 1]++;
            nanbon[sc.nextInt() - 1]++;
        } {
            nanbon[sc.nextInt() - 1]++;
            nanbon[sc.nextInt() - 1]++;
        } nanbon[sc.nextInt() - 1]++ nanbon[sc.nextInt() - 1] nanbon sc.nextInt() - 1 sc.nextInt() sc.nextInt sc 1 nanbon[sc.nextInt() - 1]++ nanbon[sc.nextInt() - 1] nanbon sc.nextInt() - 1 sc.nextInt() sc.nextInt sc 1 for (int i = 0; i < N; i++) {
            System.out.println(nanbon[i]);
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            System.out.println(nanbon[i]);
        } {
            System.out.println(nanbon[i]);
        } System.out.println(nanbon[i]) System.out.println System.out System System.out nanbon[i] nanbon i
import java.util.Scanner;
import java.util.Stack;

class Main {

    public static void main(String[] args) {
        new Main().compute();
    }

    void compute() {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int M = sc.nextInt();
        int[] nanbon = new int[N];
        for (int i = 0; i < M; i++) {
            nanbon[sc.nextInt() - 1]++;
            nanbon[sc.nextInt() - 1]++;
        }
        for (int i = 0; i < N; i++) {
            System.out.println(nanbon[i]);
        }
    }
}
