import java.util.*;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();

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

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

        int[] cities = new int[n];
        for(int i = 0 ;i < m;i++){
            int l = sc.nextInt();
            int r = sc.nextInt();
            cities[l-1] ++;
            cities[r-1] ++;
        }
        for(int j = 0 ;j < n;j++) {
            System.out.println(cities[j]);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();

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

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

        int[] cities = new int[n];
        for(int i = 0 ;i < m;i++){
            int l = sc.nextInt();
            int r = sc.nextInt();
            cities[l-1] ++;
            cities[r-1] ++;
        }
        for(int j = 0 ;j < n;j++) {
            System.out.println(cities[j]);
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();

        int[] cities = new int[n];
        for(int i = 0 ;i < m;i++){
            int l = sc.nextInt();
            int r = sc.nextInt();
            cities[l-1] ++;
            cities[r-1] ++;
        }
        for(int j = 0 ;j < n;j++) {
            System.out.println(cities[j]);
        }
    }
}