import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int m = Integer.parseInt(sc.next());
        int[] ary = new int[n];
        for (int i = 0; i < m; i++) {
            int a = Integer.parseInt(sc.next());
            int b = Integer.parseInt(sc.next());
            ary[a - 1]++;
            ary[b - 1]++;
        }
        for (int num : ary) {
            System.out.println(num);
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int m = Integer.parseInt(sc.next());
        int[] ary = new int[n];
        for (int i = 0; i < m; i++) {
            int a = Integer.parseInt(sc.next());
            int b = Integer.parseInt(sc.next());
            ary[a - 1]++;
            ary[b - 1]++;
        }
        for (int num : ary) {
            System.out.println(num);
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int m = Integer.parseInt(sc.next());
        int[] ary = new int[n];
        for (int i = 0; i < m; i++) {
            int a = Integer.parseInt(sc.next());
            int b = Integer.parseInt(sc.next());
            ary[a - 1]++;
            ary[b - 1]++;
        }
        for (int num : ary) {
            System.out.println(num);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int m = Integer.parseInt(sc.next());
        int[] ary = new int[n];
        for (int i = 0; i < m; i++) {
            int a = Integer.parseInt(sc.next());
            int b = Integer.parseInt(sc.next());
            ary[a - 1]++;
            ary[b - 1]++;
        }
        for (int num : ary) {
            System.out.println(num);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int m = Integer.parseInt(sc.next()); m Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] ary = new int[n]; ary new int[n] n for (int i = 0; i < m; i++) {
            int a = Integer.parseInt(sc.next());
            int b = Integer.parseInt(sc.next());
            ary[a - 1]++;
            ary[b - 1]++;
        } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
            int a = Integer.parseInt(sc.next());
            int b = Integer.parseInt(sc.next());
            ary[a - 1]++;
            ary[b - 1]++;
        } {
            int a = Integer.parseInt(sc.next());
            int b = Integer.parseInt(sc.next());
            ary[a - 1]++;
            ary[b - 1]++;
        } int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int b = Integer.parseInt(sc.next()); b Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc ary[a - 1]++ ary[a - 1] ary a - 1 a 1 ary[b - 1]++ ary[b - 1] ary b - 1 b 1 for (int num : ary) {
            System.out.println(num);
        } int num ary {
            System.out.println(num);
        } {
            System.out.println(num);
        } System.out.println(num) System.out.println System.out System System.out num String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int m = Integer.parseInt(sc.next());
        int[] ary = new int[n];
        for (int i = 0; i < m; i++) {
            int a = Integer.parseInt(sc.next());
            int b = Integer.parseInt(sc.next());
            ary[a - 1]++;
            ary[b - 1]++;
        }
        for (int num : ary) {
            System.out.println(num);
        }
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int m = Integer.parseInt(sc.next());
        int[] ary = new int[n];
        for (int i = 0; i < m; i++) {
            int a = Integer.parseInt(sc.next());
            int b = Integer.parseInt(sc.next());
            ary[a - 1]++;
            ary[b - 1]++;
        }
        for (int num : ary) {
            System.out.println(num);
        }
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int m = Integer.parseInt(sc.next());
        int[] ary = new int[n];
        for (int i = 0; i < m; i++) {
            int a = Integer.parseInt(sc.next());
            int b = Integer.parseInt(sc.next());
            ary[a - 1]++;
            ary[b - 1]++;
        }
        for (int num : ary) {
            System.out.println(num);
        }
    }
}