import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int town = sc.nextInt();
        int road = sc.nextInt();
        int[] num = new int[road*2];
        int townNum = 1;
        int[] ans = new int[town+1];

        for(int i=0; i<road*2; i++){
            num[i] = sc.nextInt();
        }

        for(int i=0; i<road*2; i++){
            for(int y=0; y<town+1; y++){
                if(y==num[i]){
                    ans[y]++;
                }
            }
        }

        for(int i=1; i<town+1; i++){
            System.out.println(ans[i]);
        }
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int town = sc.nextInt();
        int road = sc.nextInt();
        int[] num = new int[road*2];
        int townNum = 1;
        int[] ans = new int[town+1];

        for(int i=0; i<road*2; i++){
            num[i] = sc.nextInt();
        }

        for(int i=0; i<road*2; i++){
            for(int y=0; y<town+1; y++){
                if(y==num[i]){
                    ans[y]++;
                }
            }
        }

        for(int i=1; i<town+1; i++){
            System.out.println(ans[i]);
        }
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int town = sc.nextInt();
        int road = sc.nextInt();
        int[] num = new int[road*2];
        int townNum = 1;
        int[] ans = new int[town+1];

        for(int i=0; i<road*2; i++){
            num[i] = sc.nextInt();
        }

        for(int i=0; i<road*2; i++){
            for(int y=0; y<town+1; y++){
                if(y==num[i]){
                    ans[y]++;
                }
            }
        }

        for(int i=1; i<town+1; i++){
            System.out.println(ans[i]);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int town = sc.nextInt();
        int road = sc.nextInt();
        int[] num = new int[road*2];
        int townNum = 1;
        int[] ans = new int[town+1];

        for(int i=0; i<road*2; i++){
            num[i] = sc.nextInt();
        }

        for(int i=0; i<road*2; i++){
            for(int y=0; y<town+1; y++){
                if(y==num[i]){
                    ans[y]++;
                }
            }
        }

        for(int i=1; i<town+1; i++){
            System.out.println(ans[i]);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int town = sc.nextInt(); town sc.nextInt() sc.nextInt sc int road = sc.nextInt(); road sc.nextInt() sc.nextInt sc int[] num = new int[road*2]; num new int[road*2] road*2 road 2 int townNum = 1; townNum 1 int[] ans = new int[town+1]; ans new int[town+1] town+1 town 1 for(int i=0; i<road*2; i++){
            num[i] = sc.nextInt();
        } int i=0; int i=0; i 0 i<road*2 i road*2 road 2 i++ i++ i {
            num[i] = sc.nextInt();
        } {
            num[i] = sc.nextInt();
        } num[i] = sc.nextInt() num[i] num i sc.nextInt() sc.nextInt sc for(int i=0; i<road*2; i++){
            for(int y=0; y<town+1; y++){
                if(y==num[i]){
                    ans[y]++;
                }
            }
        } int i=0; int i=0; i 0 i<road*2 i road*2 road 2 i++ i++ i {
            for(int y=0; y<town+1; y++){
                if(y==num[i]){
                    ans[y]++;
                }
            }
        } {
            for(int y=0; y<town+1; y++){
                if(y==num[i]){
                    ans[y]++;
                }
            }
        } for(int y=0; y<town+1; y++){
                if(y==num[i]){
                    ans[y]++;
                }
            } int y=0; int y=0; y 0 y<town+1 y town+1 town 1 y++ y++ y {
                if(y==num[i]){
                    ans[y]++;
                }
            } {
                if(y==num[i]){
                    ans[y]++;
                }
            } if(y==num[i]){
                    ans[y]++;
                } y==num[i] y num[i] num i {
                    ans[y]++;
                } ans[y]++ ans[y] ans y for(int i=1; i<town+1; i++){
            System.out.println(ans[i]);
        } int i=1; int i=1; i 1 i<town+1 i town+1 town 1 i++ i++ i {
            System.out.println(ans[i]);
        } {
            System.out.println(ans[i]);
        } System.out.println(ans[i]) System.out.println System.out System System.out ans[i] ans i String[] args args public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int town = sc.nextInt();
        int road = sc.nextInt();
        int[] num = new int[road*2];
        int townNum = 1;
        int[] ans = new int[town+1];

        for(int i=0; i<road*2; i++){
            num[i] = sc.nextInt();
        }

        for(int i=0; i<road*2; i++){
            for(int y=0; y<town+1; y++){
                if(y==num[i]){
                    ans[y]++;
                }
            }
        }

        for(int i=1; i<town+1; i++){
            System.out.println(ans[i]);
        }
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int town = sc.nextInt();
        int road = sc.nextInt();
        int[] num = new int[road*2];
        int townNum = 1;
        int[] ans = new int[town+1];

        for(int i=0; i<road*2; i++){
            num[i] = sc.nextInt();
        }

        for(int i=0; i<road*2; i++){
            for(int y=0; y<town+1; y++){
                if(y==num[i]){
                    ans[y]++;
                }
            }
        }

        for(int i=1; i<town+1; i++){
            System.out.println(ans[i]);
        }
    }
} Main
import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int town = sc.nextInt();
        int road = sc.nextInt();
        int[] num = new int[road*2];
        int townNum = 1;
        int[] ans = new int[town+1];

        for(int i=0; i<road*2; i++){
            num[i] = sc.nextInt();
        }

        for(int i=0; i<road*2; i++){
            for(int y=0; y<town+1; y++){
                if(y==num[i]){
                    ans[y]++;
                }
            }
        }

        for(int i=1; i<town+1; i++){
            System.out.println(ans[i]);
        }
    }
}