import java.lang.reflect.Array;
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt(), m = sc.nextInt();
        int ans[] = new int[n];
        for (int i = 0; i < m; i++) {
            int a = sc.nextInt(), b = sc.nextInt();
            ans[a - 1] += 1;
            ans[b - 1] += 1;
        }
        for (Integer c:ans) System.out.println(c);
    }
} import java.lang.reflect.Array; Array java.lang.reflect import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt(), m = sc.nextInt();
        int ans[] = new int[n];
        for (int i = 0; i < m; i++) {
            int a = sc.nextInt(), b = sc.nextInt();
            ans[a - 1] += 1;
            ans[b - 1] += 1;
        }
        for (Integer c:ans) System.out.println(c);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt(), m = sc.nextInt();
        int ans[] = new int[n];
        for (int i = 0; i < m; i++) {
            int a = sc.nextInt(), b = sc.nextInt();
            ans[a - 1] += 1;
            ans[b - 1] += 1;
        }
        for (Integer c:ans) System.out.println(c);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt(), m = sc.nextInt();
        int ans[] = new int[n];
        for (int i = 0; i < m; i++) {
            int a = sc.nextInt(), b = sc.nextInt();
            ans[a - 1] += 1;
            ans[b - 1] += 1;
        }
        for (Integer c:ans) System.out.println(c);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt() n sc.nextInt() sc.nextInt sc m = sc.nextInt(); m sc.nextInt() sc.nextInt sc int ans[] = new int[n]; ans new int[n] n for (int i = 0; i < m; i++) {
            int a = sc.nextInt(), b = sc.nextInt();
            ans[a - 1] += 1;
            ans[b - 1] += 1;
        } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
            int a = sc.nextInt(), b = sc.nextInt();
            ans[a - 1] += 1;
            ans[b - 1] += 1;
        } {
            int a = sc.nextInt(), b = sc.nextInt();
            ans[a - 1] += 1;
            ans[b - 1] += 1;
        } int a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt(); b sc.nextInt() sc.nextInt sc ans[a - 1] += 1 ans[a - 1] ans a - 1 a 1 1 ans[b - 1] += 1 ans[b - 1] ans b - 1 b 1 1 for (Integer c:ans) System.out.println(c); Integer c ans System.out.println(c); System.out.println(c) System.out.println System.out System System.out c String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt(), m = sc.nextInt();
        int ans[] = new int[n];
        for (int i = 0; i < m; i++) {
            int a = sc.nextInt(), b = sc.nextInt();
            ans[a - 1] += 1;
            ans[b - 1] += 1;
        }
        for (Integer c:ans) System.out.println(c);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt(), m = sc.nextInt();
        int ans[] = new int[n];
        for (int i = 0; i < m; i++) {
            int a = sc.nextInt(), b = sc.nextInt();
            ans[a - 1] += 1;
            ans[b - 1] += 1;
        }
        for (Integer c:ans) System.out.println(c);
    }
} Main
import java.lang.reflect.Array;
import java.util.*;

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