import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int road = sc.nextInt();
        int[] city = new int[n];
        for (int i = 0; i < road; i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            city[a - 1]++;
            city[b - 1]++;
        }
        for (int tmp : city) {
            System.out.println(tmp);
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int road = sc.nextInt();
        int[] city = new int[n];
        for (int i = 0; i < road; i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            city[a - 1]++;
            city[b - 1]++;
        }
        for (int tmp : city) {
            System.out.println(tmp);
        }
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int road = sc.nextInt();
        int[] city = new int[n];
        for (int i = 0; i < road; i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            city[a - 1]++;
            city[b - 1]++;
        }
        for (int tmp : city) {
            System.out.println(tmp);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int road = sc.nextInt();
        int[] city = new int[n];
        for (int i = 0; i < road; i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            city[a - 1]++;
            city[b - 1]++;
        }
        for (int tmp : city) {
            System.out.println(tmp);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int road = sc.nextInt(); road sc.nextInt() sc.nextInt sc int[] city = new int[n]; city new int[n] n for (int i = 0; i < road; i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            city[a - 1]++;
            city[b - 1]++;
        } int i = 0; int i = 0; i 0 i < road i road i++ i++ i {
            int a = sc.nextInt();
            int b = sc.nextInt();
            city[a - 1]++;
            city[b - 1]++;
        } {
            int a = sc.nextInt();
            int b = sc.nextInt();
            city[a - 1]++;
            city[b - 1]++;
        } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc city[a - 1]++ city[a - 1] city a - 1 a 1 city[b - 1]++ city[b - 1] city b - 1 b 1 for (int tmp : city) {
            System.out.println(tmp);
        } int tmp city {
            System.out.println(tmp);
        } {
            System.out.println(tmp);
        } System.out.println(tmp) System.out.println System.out System System.out tmp String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int road = sc.nextInt();
        int[] city = new int[n];
        for (int i = 0; i < road; i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            city[a - 1]++;
            city[b - 1]++;
        }
        for (int tmp : city) {
            System.out.println(tmp);
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int road = sc.nextInt();
        int[] city = new int[n];
        for (int i = 0; i < road; i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            city[a - 1]++;
            city[b - 1]++;
        }
        for (int tmp : city) {
            System.out.println(tmp);
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int road = sc.nextInt();
        int[] city = new int[n];
        for (int i = 0; i < road; i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            city[a - 1]++;
            city[b - 1]++;
        }
        for (int tmp : city) {
            System.out.println(tmp);
        }
    }
}
