import java.util.Scanner;

class Main {

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

        int numberOfCity = sc.nextInt();
        int numberOfRoad = sc.nextInt();

        City[] cities = new City[numberOfCity];

        for (int i = 0; i < numberOfCity; i++) {
            cities[i] = new City();
        }

        for (int i = 0; i < numberOfRoad; i ++) {
            int from = sc.nextInt();
            int to   = sc.nextInt();

            cities[from-1].addRoad();
            cities[to-1].addRoad();
        }

        for(City city : cities) {
            System.out.println(city.getCnt());
        }
    }

    private static class City {
        private int cntRoad;

        public void addRoad() {
            cntRoad ++;
        }

        public int getCnt() {
            return this.cntRoad;
        }
    }
}

 import java.util.Scanner; Scanner java.util class Main {

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

        int numberOfCity = sc.nextInt();
        int numberOfRoad = sc.nextInt();

        City[] cities = new City[numberOfCity];

        for (int i = 0; i < numberOfCity; i++) {
            cities[i] = new City();
        }

        for (int i = 0; i < numberOfRoad; i ++) {
            int from = sc.nextInt();
            int to   = sc.nextInt();

            cities[from-1].addRoad();
            cities[to-1].addRoad();
        }

        for(City city : cities) {
            System.out.println(city.getCnt());
        }
    }

    private static class City {
        private int cntRoad;

        public void addRoad() {
            cntRoad ++;
        }

        public int getCnt() {
            return this.cntRoad;
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int numberOfCity = sc.nextInt();
        int numberOfRoad = sc.nextInt();

        City[] cities = new City[numberOfCity];

        for (int i = 0; i < numberOfCity; i++) {
            cities[i] = new City();
        }

        for (int i = 0; i < numberOfRoad; i ++) {
            int from = sc.nextInt();
            int to   = sc.nextInt();

            cities[from-1].addRoad();
            cities[to-1].addRoad();
        }

        for(City city : cities) {
            System.out.println(city.getCnt());
        }
    } main {
        Scanner sc = new Scanner(System.in);

        int numberOfCity = sc.nextInt();
        int numberOfRoad = sc.nextInt();

        City[] cities = new City[numberOfCity];

        for (int i = 0; i < numberOfCity; i++) {
            cities[i] = new City();
        }

        for (int i = 0; i < numberOfRoad; i ++) {
            int from = sc.nextInt();
            int to   = sc.nextInt();

            cities[from-1].addRoad();
            cities[to-1].addRoad();
        }

        for(City city : cities) {
            System.out.println(city.getCnt());
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int numberOfCity = sc.nextInt(); numberOfCity sc.nextInt() sc.nextInt sc int numberOfRoad = sc.nextInt(); numberOfRoad sc.nextInt() sc.nextInt sc City[] cities = new City[numberOfCity]; cities new City[numberOfCity] numberOfCity for (int i = 0; i < numberOfCity; i++) {
            cities[i] = new City();
        } int i = 0; int i = 0; i 0 i < numberOfCity i numberOfCity i++ i++ i {
            cities[i] = new City();
        } {
            cities[i] = new City();
        } cities[i] = new City() cities[i] cities i new City() for (int i = 0; i < numberOfRoad; i ++) {
            int from = sc.nextInt();
            int to   = sc.nextInt();

            cities[from-1].addRoad();
            cities[to-1].addRoad();
        } int i = 0; int i = 0; i 0 i < numberOfRoad i numberOfRoad i ++ i ++ i {
            int from = sc.nextInt();
            int to   = sc.nextInt();

            cities[from-1].addRoad();
            cities[to-1].addRoad();
        } {
            int from = sc.nextInt();
            int to   = sc.nextInt();

            cities[from-1].addRoad();
            cities[to-1].addRoad();
        } int from = sc.nextInt(); from sc.nextInt() sc.nextInt sc int to   = sc.nextInt(); to sc.nextInt() sc.nextInt sc cities[from-1].addRoad() cities[from-1].addRoad cities[from-1] cities from-1 from 1 cities[to-1].addRoad() cities[to-1].addRoad cities[to-1] cities to-1 to 1 for(City city : cities) {
            System.out.println(city.getCnt());
        } City city cities {
            System.out.println(city.getCnt());
        } {
            System.out.println(city.getCnt());
        } System.out.println(city.getCnt()) System.out.println System.out System System.out city.getCnt() city.getCnt city String[] args args private static class City {
        private int cntRoad;

        public void addRoad() {
            cntRoad ++;
        }

        public int getCnt() {
            return this.cntRoad;
        }
    } City private int cntRoad; cntRoad public void addRoad() {
            cntRoad ++;
        } addRoad {
            cntRoad ++;
        } cntRoad ++ cntRoad public int getCnt() {
            return this.cntRoad;
        } getCnt {
            return this.cntRoad;
        } return this.cntRoad; this.cntRoad this this.cntRoad
import java.util.Scanner;

class Main {

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

        int numberOfCity = sc.nextInt();
        int numberOfRoad = sc.nextInt();

        City[] cities = new City[numberOfCity];

        for (int i = 0; i < numberOfCity; i++) {
            cities[i] = new City();
        }

        for (int i = 0; i < numberOfRoad; i ++) {
            int from = sc.nextInt();
            int to   = sc.nextInt();

            cities[from-1].addRoad();
            cities[to-1].addRoad();
        }

        for(City city : cities) {
            System.out.println(city.getCnt());
        }
    }

    private static class City {
        private int cntRoad;

        public void addRoad() {
            cntRoad ++;
        }

        public int getCnt() {
            return this.cntRoad;
        }
    }
}


