import 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[] a = new int[m];
        int[] b = new int[m];
        for (int i = 0; i < m; i++) {
            a[i] = Integer.parseInt(sc.next());
            b[i] = Integer.parseInt(sc.next());
        }
        sc.close();

        // 主処理
        List<ArrayList<Integer>> list = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            list.add(new ArrayList<>());
        }
        for (int i = 0; i < m; i++) {
            list.get(a[i] - 1).add(b[i] - 1);
            list.get(b[i] - 1).add(a[i] - 1);
        }

        // 出力
        for (ArrayList<Integer> set : list) {
            System.out.println(set.size());
        }
    }
} import java.util.*; util.* java 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[] a = new int[m];
        int[] b = new int[m];
        for (int i = 0; i < m; i++) {
            a[i] = Integer.parseInt(sc.next());
            b[i] = Integer.parseInt(sc.next());
        }
        sc.close();

        // 主処理
        List<ArrayList<Integer>> list = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            list.add(new ArrayList<>());
        }
        for (int i = 0; i < m; i++) {
            list.get(a[i] - 1).add(b[i] - 1);
            list.get(b[i] - 1).add(a[i] - 1);
        }

        // 出力
        for (ArrayList<Integer> set : list) {
            System.out.println(set.size());
        }
    }
} 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[] a = new int[m];
        int[] b = new int[m];
        for (int i = 0; i < m; i++) {
            a[i] = Integer.parseInt(sc.next());
            b[i] = Integer.parseInt(sc.next());
        }
        sc.close();

        // 主処理
        List<ArrayList<Integer>> list = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            list.add(new ArrayList<>());
        }
        for (int i = 0; i < m; i++) {
            list.get(a[i] - 1).add(b[i] - 1);
            list.get(b[i] - 1).add(a[i] - 1);
        }

        // 出力
        for (ArrayList<Integer> set : list) {
            System.out.println(set.size());
        }
    } main {

        // 入力
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int m = Integer.parseInt(sc.next());
        int[] a = new int[m];
        int[] b = new int[m];
        for (int i = 0; i < m; i++) {
            a[i] = Integer.parseInt(sc.next());
            b[i] = Integer.parseInt(sc.next());
        }
        sc.close();

        // 主処理
        List<ArrayList<Integer>> list = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            list.add(new ArrayList<>());
        }
        for (int i = 0; i < m; i++) {
            list.get(a[i] - 1).add(b[i] - 1);
            list.get(b[i] - 1).add(a[i] - 1);
        }

        // 出力
        for (ArrayList<Integer> set : list) {
            System.out.println(set.size());
        }
    } 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[] a = new int[m]; a new int[m] m int[] b = new int[m]; b new int[m] m for (int i = 0; i < m; i++) {
            a[i] = Integer.parseInt(sc.next());
            b[i] = Integer.parseInt(sc.next());
        } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
            a[i] = Integer.parseInt(sc.next());
            b[i] = Integer.parseInt(sc.next());
        } {
            a[i] = Integer.parseInt(sc.next());
            b[i] = Integer.parseInt(sc.next());
        } a[i] = Integer.parseInt(sc.next()) a[i] a i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc b[i] = Integer.parseInt(sc.next()) b[i] b i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc sc.close() sc.close sc List<ArrayList<Integer>> list = new ArrayList<>(); list new ArrayList<>() for (int i = 0; i < n; i++) {
            list.add(new ArrayList<>());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            list.add(new ArrayList<>());
        } {
            list.add(new ArrayList<>());
        } list.add(new ArrayList<>()) list.add list new ArrayList<>() for (int i = 0; i < m; i++) {
            list.get(a[i] - 1).add(b[i] - 1);
            list.get(b[i] - 1).add(a[i] - 1);
        } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
            list.get(a[i] - 1).add(b[i] - 1);
            list.get(b[i] - 1).add(a[i] - 1);
        } {
            list.get(a[i] - 1).add(b[i] - 1);
            list.get(b[i] - 1).add(a[i] - 1);
        } list.get(a[i] - 1).add(b[i] - 1) list.get(a[i] - 1).add list.get(a[i] - 1) list.get list a[i] - 1 a[i] a i 1 b[i] - 1 b[i] b i 1 list.get(b[i] - 1).add(a[i] - 1) list.get(b[i] - 1).add list.get(b[i] - 1) list.get list b[i] - 1 b[i] b i 1 a[i] - 1 a[i] a i 1 for (ArrayList<Integer> set : list) {
            System.out.println(set.size());
        } ArrayList<Integer> set list {
            System.out.println(set.size());
        } {
            System.out.println(set.size());
        } System.out.println(set.size()) System.out.println System.out System System.out set.size() set.size set 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[] a = new int[m];
        int[] b = new int[m];
        for (int i = 0; i < m; i++) {
            a[i] = Integer.parseInt(sc.next());
            b[i] = Integer.parseInt(sc.next());
        }
        sc.close();

        // 主処理
        List<ArrayList<Integer>> list = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            list.add(new ArrayList<>());
        }
        for (int i = 0; i < m; i++) {
            list.get(a[i] - 1).add(b[i] - 1);
            list.get(b[i] - 1).add(a[i] - 1);
        }

        // 出力
        for (ArrayList<Integer> set : list) {
            System.out.println(set.size());
        }
    }
} 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[] a = new int[m];
        int[] b = new int[m];
        for (int i = 0; i < m; i++) {
            a[i] = Integer.parseInt(sc.next());
            b[i] = Integer.parseInt(sc.next());
        }
        sc.close();

        // 主処理
        List<ArrayList<Integer>> list = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            list.add(new ArrayList<>());
        }
        for (int i = 0; i < m; i++) {
            list.get(a[i] - 1).add(b[i] - 1);
            list.get(b[i] - 1).add(a[i] - 1);
        }

        // 出力
        for (ArrayList<Integer> set : list) {
            System.out.println(set.size());
        }
    }
} Main
import 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[] a = new int[m];
        int[] b = new int[m];
        for (int i = 0; i < m; i++) {
            a[i] = Integer.parseInt(sc.next());
            b[i] = Integer.parseInt(sc.next());
        }
        sc.close();

        // 主処理
        List<ArrayList<Integer>> list = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            list.add(new ArrayList<>());
        }
        for (int i = 0; i < m; i++) {
            list.get(a[i] - 1).add(b[i] - 1);
            list.get(b[i] - 1).add(a[i] - 1);
        }

        // 出力
        for (ArrayList<Integer> set : list) {
            System.out.println(set.size());
        }
    }
}
