
import java.io.*;
import java.util.*;
//import java.util.stream.*;
//import java.math.*;

public class Main {

    public static int gcd(int a, int b) {
        return (b == 0) ? a : gcd(b, a % b);
    }

    public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        //forl(n, array, sc);
        int n1, n2;
        int array[] = new int[n];
        for (int i = 0; i < m; i++) {
            n1 = sc.nextInt();
            n2 = sc.nextInt();
            array[n1 - 1]++;
            array[n2 - 1]++;
        }
        for (int c : array) {
            System.out.println(c);
        }
        bw.flush();
    }

    public static void forl(int n, int[] array, Scanner sc) {
        for (int i = 0; i < n; i++) {
            array[i] = sc.nextInt();
        }
    }
} import java.io.*; io.* java import java.util.*; util.* java public class Main {

    public static int gcd(int a, int b) {
        return (b == 0) ? a : gcd(b, a % b);
    }

    public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        //forl(n, array, sc);
        int n1, n2;
        int array[] = new int[n];
        for (int i = 0; i < m; i++) {
            n1 = sc.nextInt();
            n2 = sc.nextInt();
            array[n1 - 1]++;
            array[n2 - 1]++;
        }
        for (int c : array) {
            System.out.println(c);
        }
        bw.flush();
    }

    public static void forl(int n, int[] array, Scanner sc) {
        for (int i = 0; i < n; i++) {
            array[i] = sc.nextInt();
        }
    }
} Main public static int gcd(int a, int b) {
        return (b == 0) ? a : gcd(b, a % b);
    } gcd {
        return (b == 0) ? a : gcd(b, a % b);
    } return (b == 0) ? a : gcd(b, a % b); (b == 0) ? a : gcd(b, a % b) (b == 0) b 0 a gcd(b, a % b) gcd b a % b a b int a a int b b public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        //forl(n, array, sc);
        int n1, n2;
        int array[] = new int[n];
        for (int i = 0; i < m; i++) {
            n1 = sc.nextInt();
            n2 = sc.nextInt();
            array[n1 - 1]++;
            array[n2 - 1]++;
        }
        for (int c : array) {
            System.out.println(c);
        }
        bw.flush();
    } main {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        //forl(n, array, sc);
        int n1, n2;
        int array[] = new int[n];
        for (int i = 0; i < m; i++) {
            n1 = sc.nextInt();
            n2 = sc.nextInt();
            array[n1 - 1]++;
            array[n2 - 1]++;
        }
        for (int c : array) {
            System.out.println(c);
        }
        bw.flush();
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); bw new BufferedWriter(new OutputStreamWriter(System.out)) 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 n1 n1 n2; n2 int array[] = new int[n]; array new int[n] n for (int i = 0; i < m; i++) {
            n1 = sc.nextInt();
            n2 = sc.nextInt();
            array[n1 - 1]++;
            array[n2 - 1]++;
        } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
            n1 = sc.nextInt();
            n2 = sc.nextInt();
            array[n1 - 1]++;
            array[n2 - 1]++;
        } {
            n1 = sc.nextInt();
            n2 = sc.nextInt();
            array[n1 - 1]++;
            array[n2 - 1]++;
        } n1 = sc.nextInt() n1 sc.nextInt() sc.nextInt sc n2 = sc.nextInt() n2 sc.nextInt() sc.nextInt sc array[n1 - 1]++ array[n1 - 1] array n1 - 1 n1 1 array[n2 - 1]++ array[n2 - 1] array n2 - 1 n2 1 for (int c : array) {
            System.out.println(c);
        } int c array {
            System.out.println(c);
        } {
            System.out.println(c);
        } System.out.println(c) System.out.println System.out System System.out c bw.flush() bw.flush bw String[] args args public static void forl(int n, int[] array, Scanner sc) {
        for (int i = 0; i < n; i++) {
            array[i] = sc.nextInt();
        }
    } forl {
        for (int i = 0; i < n; i++) {
            array[i] = sc.nextInt();
        }
    } for (int i = 0; i < n; i++) {
            array[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            array[i] = sc.nextInt();
        } {
            array[i] = sc.nextInt();
        } array[i] = sc.nextInt() array[i] array i sc.nextInt() sc.nextInt sc int n n int[] array array Scanner sc sc public class Main {

    public static int gcd(int a, int b) {
        return (b == 0) ? a : gcd(b, a % b);
    }

    public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        //forl(n, array, sc);
        int n1, n2;
        int array[] = new int[n];
        for (int i = 0; i < m; i++) {
            n1 = sc.nextInt();
            n2 = sc.nextInt();
            array[n1 - 1]++;
            array[n2 - 1]++;
        }
        for (int c : array) {
            System.out.println(c);
        }
        bw.flush();
    }

    public static void forl(int n, int[] array, Scanner sc) {
        for (int i = 0; i < n; i++) {
            array[i] = sc.nextInt();
        }
    }
} public class Main {

    public static int gcd(int a, int b) {
        return (b == 0) ? a : gcd(b, a % b);
    }

    public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        //forl(n, array, sc);
        int n1, n2;
        int array[] = new int[n];
        for (int i = 0; i < m; i++) {
            n1 = sc.nextInt();
            n2 = sc.nextInt();
            array[n1 - 1]++;
            array[n2 - 1]++;
        }
        for (int c : array) {
            System.out.println(c);
        }
        bw.flush();
    }

    public static void forl(int n, int[] array, Scanner sc) {
        for (int i = 0; i < n; i++) {
            array[i] = sc.nextInt();
        }
    }
} Main

import java.io.*;
import java.util.*;
//import java.util.stream.*;
//import java.math.*;

public class Main {

    public static int gcd(int a, int b) {
        return (b == 0) ? a : gcd(b, a % b);
    }

    public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        //forl(n, array, sc);
        int n1, n2;
        int array[] = new int[n];
        for (int i = 0; i < m; i++) {
            n1 = sc.nextInt();
            n2 = sc.nextInt();
            array[n1 - 1]++;
            array[n2 - 1]++;
        }
        for (int c : array) {
            System.out.println(c);
        }
        bw.flush();
    }

    public static void forl(int n, int[] array, Scanner sc) {
        for (int i = 0; i < n; i++) {
            array[i] = sc.nextInt();
        }
    }
}
