import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
    private static Scanner sc;

    public static void main(String[] args) {
        sc = new Scanner(System.in);
        new Main().run();
    }

    private void run() {
        int N = sc.nextInt();
        int M = sc.nextInt();

        List<List<Integer>> roads = new ArrayList<List<Integer>>();
        for (int i = 0; i < N; i++) {
            roads.add(new ArrayList());
        }

        for (int i = 0; i < M; i++) {
            int from = sc.nextInt() - 1;
            int to = sc.nextInt() - 1;
            roads.get(from).add(to);
            roads.get(to).add(from);
        }

        for (List<Integer> list : roads) {
            System.out.println(list.size());
        }
    }
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
    private static Scanner sc;

    public static void main(String[] args) {
        sc = new Scanner(System.in);
        new Main().run();
    }

    private void run() {
        int N = sc.nextInt();
        int M = sc.nextInt();

        List<List<Integer>> roads = new ArrayList<List<Integer>>();
        for (int i = 0; i < N; i++) {
            roads.add(new ArrayList());
        }

        for (int i = 0; i < M; i++) {
            int from = sc.nextInt() - 1;
            int to = sc.nextInt() - 1;
            roads.get(from).add(to);
            roads.get(to).add(from);
        }

        for (List<Integer> list : roads) {
            System.out.println(list.size());
        }
    }
} Main private static Scanner sc; sc public static void main(String[] args) {
        sc = new Scanner(System.in);
        new Main().run();
    } main {
        sc = new Scanner(System.in);
        new Main().run();
    } sc = new Scanner(System.in) sc new Scanner(System.in) new Main().run() new Main().run new Main() String[] args args private void run() {
        int N = sc.nextInt();
        int M = sc.nextInt();

        List<List<Integer>> roads = new ArrayList<List<Integer>>();
        for (int i = 0; i < N; i++) {
            roads.add(new ArrayList());
        }

        for (int i = 0; i < M; i++) {
            int from = sc.nextInt() - 1;
            int to = sc.nextInt() - 1;
            roads.get(from).add(to);
            roads.get(to).add(from);
        }

        for (List<Integer> list : roads) {
            System.out.println(list.size());
        }
    } run {
        int N = sc.nextInt();
        int M = sc.nextInt();

        List<List<Integer>> roads = new ArrayList<List<Integer>>();
        for (int i = 0; i < N; i++) {
            roads.add(new ArrayList());
        }

        for (int i = 0; i < M; i++) {
            int from = sc.nextInt() - 1;
            int to = sc.nextInt() - 1;
            roads.get(from).add(to);
            roads.get(to).add(from);
        }

        for (List<Integer> list : roads) {
            System.out.println(list.size());
        }
    } int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int M = sc.nextInt(); M sc.nextInt() sc.nextInt sc List<List<Integer>> roads = new ArrayList<List<Integer>>(); roads new ArrayList<List<Integer>>() for (int i = 0; i < N; i++) {
            roads.add(new ArrayList());
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            roads.add(new ArrayList());
        } {
            roads.add(new ArrayList());
        } roads.add(new ArrayList()) roads.add roads new ArrayList() for (int i = 0; i < M; i++) {
            int from = sc.nextInt() - 1;
            int to = sc.nextInt() - 1;
            roads.get(from).add(to);
            roads.get(to).add(from);
        } int i = 0; int i = 0; i 0 i < M i M i++ i++ i {
            int from = sc.nextInt() - 1;
            int to = sc.nextInt() - 1;
            roads.get(from).add(to);
            roads.get(to).add(from);
        } {
            int from = sc.nextInt() - 1;
            int to = sc.nextInt() - 1;
            roads.get(from).add(to);
            roads.get(to).add(from);
        } int from = sc.nextInt() - 1; from sc.nextInt() - 1 sc.nextInt() sc.nextInt sc 1 int to = sc.nextInt() - 1; to sc.nextInt() - 1 sc.nextInt() sc.nextInt sc 1 roads.get(from).add(to) roads.get(from).add roads.get(from) roads.get roads from to roads.get(to).add(from) roads.get(to).add roads.get(to) roads.get roads to from for (List<Integer> list : roads) {
            System.out.println(list.size());
        } List<Integer> list roads {
            System.out.println(list.size());
        } {
            System.out.println(list.size());
        } System.out.println(list.size()) System.out.println System.out System System.out list.size() list.size list public class Main {
    private static Scanner sc;

    public static void main(String[] args) {
        sc = new Scanner(System.in);
        new Main().run();
    }

    private void run() {
        int N = sc.nextInt();
        int M = sc.nextInt();

        List<List<Integer>> roads = new ArrayList<List<Integer>>();
        for (int i = 0; i < N; i++) {
            roads.add(new ArrayList());
        }

        for (int i = 0; i < M; i++) {
            int from = sc.nextInt() - 1;
            int to = sc.nextInt() - 1;
            roads.get(from).add(to);
            roads.get(to).add(from);
        }

        for (List<Integer> list : roads) {
            System.out.println(list.size());
        }
    }
} public class Main {
    private static Scanner sc;

    public static void main(String[] args) {
        sc = new Scanner(System.in);
        new Main().run();
    }

    private void run() {
        int N = sc.nextInt();
        int M = sc.nextInt();

        List<List<Integer>> roads = new ArrayList<List<Integer>>();
        for (int i = 0; i < N; i++) {
            roads.add(new ArrayList());
        }

        for (int i = 0; i < M; i++) {
            int from = sc.nextInt() - 1;
            int to = sc.nextInt() - 1;
            roads.get(from).add(to);
            roads.get(to).add(from);
        }

        for (List<Integer> list : roads) {
            System.out.println(list.size());
        }
    }
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
    private static Scanner sc;

    public static void main(String[] args) {
        sc = new Scanner(System.in);
        new Main().run();
    }

    private void run() {
        int N = sc.nextInt();
        int M = sc.nextInt();

        List<List<Integer>> roads = new ArrayList<List<Integer>>();
        for (int i = 0; i < N; i++) {
            roads.add(new ArrayList());
        }

        for (int i = 0; i < M; i++) {
            int from = sc.nextInt() - 1;
            int to = sc.nextInt() - 1;
            roads.get(from).add(to);
            roads.get(to).add(from);
        }

        for (List<Integer> list : roads) {
            System.out.println(list.size());
        }
    }
}
