import java.util.Scanner;

public class Main{
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int m = scanner.nextInt();
        int[] cities = new int[n+1];
        for (int i = 0; i < m; i++) {
            cities[scanner.nextInt()]++;
            cities[scanner.nextInt()]++;
        }
        for (int i = 1; i < n+1; i++) {
            System.out.println(cities[i]);
        }
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int m = scanner.nextInt();
        int[] cities = new int[n+1];
        for (int i = 0; i < m; i++) {
            cities[scanner.nextInt()]++;
            cities[scanner.nextInt()]++;
        }
        for (int i = 1; i < n+1; i++) {
            System.out.println(cities[i]);
        }
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int m = scanner.nextInt();
        int[] cities = new int[n+1];
        for (int i = 0; i < m; i++) {
            cities[scanner.nextInt()]++;
            cities[scanner.nextInt()]++;
        }
        for (int i = 1; i < n+1; i++) {
            System.out.println(cities[i]);
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int m = scanner.nextInt();
        int[] cities = new int[n+1];
        for (int i = 0; i < m; i++) {
            cities[scanner.nextInt()]++;
            cities[scanner.nextInt()]++;
        }
        for (int i = 1; i < n+1; i++) {
            System.out.println(cities[i]);
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int m = scanner.nextInt(); m scanner.nextInt() scanner.nextInt scanner int[] cities = new int[n+1]; cities new int[n+1] n+1 n 1 for (int i = 0; i < m; i++) {
            cities[scanner.nextInt()]++;
            cities[scanner.nextInt()]++;
        } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
            cities[scanner.nextInt()]++;
            cities[scanner.nextInt()]++;
        } {
            cities[scanner.nextInt()]++;
            cities[scanner.nextInt()]++;
        } cities[scanner.nextInt()]++ cities[scanner.nextInt()] cities scanner.nextInt() scanner.nextInt scanner cities[scanner.nextInt()]++ cities[scanner.nextInt()] cities scanner.nextInt() scanner.nextInt scanner for (int i = 1; i < n+1; i++) {
            System.out.println(cities[i]);
        } int i = 1; int i = 1; i 1 i < n+1 i n+1 n 1 i++ i++ i {
            System.out.println(cities[i]);
        } {
            System.out.println(cities[i]);
        } System.out.println(cities[i]) System.out.println System.out System System.out cities[i] cities i String[] args args public class Main{
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int m = scanner.nextInt();
        int[] cities = new int[n+1];
        for (int i = 0; i < m; i++) {
            cities[scanner.nextInt()]++;
            cities[scanner.nextInt()]++;
        }
        for (int i = 1; i < n+1; i++) {
            System.out.println(cities[i]);
        }
    }
} public class Main{
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int m = scanner.nextInt();
        int[] cities = new int[n+1];
        for (int i = 0; i < m; i++) {
            cities[scanner.nextInt()]++;
            cities[scanner.nextInt()]++;
        }
        for (int i = 1; i < n+1; i++) {
            System.out.println(cities[i]);
        }
    }
} Main
import java.util.Scanner;

public class Main{
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int m = scanner.nextInt();
        int[] cities = new int[n+1];
        for (int i = 0; i < m; i++) {
            cities[scanner.nextInt()]++;
            cities[scanner.nextInt()]++;
        }
        for (int i = 1; i < n+1; i++) {
            System.out.println(cities[i]);
        }
    }
}
