import java.util.*;

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

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