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[][] flag = new int[n+1][n+1];
        //Arrays.fill(flag[][],false);
        int[] num = new int[n+1];

        for(int i =0;i<m;i++){
                int a = sc.nextInt();
                int b = sc.nextInt();
                flag[a][b]++;
                flag[b][a]++;
        }

        for(int i  =1;i<n+1;i++){
            for(int j =1;j<n+1;j++){
                num[i]+=flag[i][j];
            }
            System.out.println(num[i]);
        }
    }
}



 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[][] flag = new int[n+1][n+1];
        //Arrays.fill(flag[][],false);
        int[] num = new int[n+1];

        for(int i =0;i<m;i++){
                int a = sc.nextInt();
                int b = sc.nextInt();
                flag[a][b]++;
                flag[b][a]++;
        }

        for(int i  =1;i<n+1;i++){
            for(int j =1;j<n+1;j++){
                num[i]+=flag[i][j];
            }
            System.out.println(num[i]);
        }
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[][] flag = new int[n+1][n+1];
        //Arrays.fill(flag[][],false);
        int[] num = new int[n+1];

        for(int i =0;i<m;i++){
                int a = sc.nextInt();
                int b = sc.nextInt();
                flag[a][b]++;
                flag[b][a]++;
        }

        for(int i  =1;i<n+1;i++){
            for(int j =1;j<n+1;j++){
                num[i]+=flag[i][j];
            }
            System.out.println(num[i]);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[][] flag = new int[n+1][n+1];
        //Arrays.fill(flag[][],false);
        int[] num = new int[n+1];

        for(int i =0;i<m;i++){
                int a = sc.nextInt();
                int b = sc.nextInt();
                flag[a][b]++;
                flag[b][a]++;
        }

        for(int i  =1;i<n+1;i++){
            for(int j =1;j<n+1;j++){
                num[i]+=flag[i][j];
            }
            System.out.println(num[i]);
        }
    } 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[][] flag = new int[n+1][n+1]; flag new int[n+1][n+1] n+1 n 1 n+1 n 1 int[] num = new int[n+1]; num new int[n+1] n+1 n 1 for(int i =0;i<m;i++){
                int a = sc.nextInt();
                int b = sc.nextInt();
                flag[a][b]++;
                flag[b][a]++;
        } int i =0; int i =0; i 0 i<m i m i++ i++ i {
                int a = sc.nextInt();
                int b = sc.nextInt();
                flag[a][b]++;
                flag[b][a]++;
        } {
                int a = sc.nextInt();
                int b = sc.nextInt();
                flag[a][b]++;
                flag[b][a]++;
        } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc flag[a][b]++ flag[a][b] flag[a] flag a b flag[b][a]++ flag[b][a] flag[b] flag b a for(int i  =1;i<n+1;i++){
            for(int j =1;j<n+1;j++){
                num[i]+=flag[i][j];
            }
            System.out.println(num[i]);
        } int i  =1; int i  =1; i 1 i<n+1 i n+1 n 1 i++ i++ i {
            for(int j =1;j<n+1;j++){
                num[i]+=flag[i][j];
            }
            System.out.println(num[i]);
        } {
            for(int j =1;j<n+1;j++){
                num[i]+=flag[i][j];
            }
            System.out.println(num[i]);
        } for(int j =1;j<n+1;j++){
                num[i]+=flag[i][j];
            } int j =1; int j =1; j 1 j<n+1 j n+1 n 1 j++ j++ j {
                num[i]+=flag[i][j];
            } {
                num[i]+=flag[i][j];
            } num[i]+=flag[i][j] num[i] num i flag[i][j] flag[i] flag i j System.out.println(num[i]) System.out.println System.out System System.out num[i] num i 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[][] flag = new int[n+1][n+1];
        //Arrays.fill(flag[][],false);
        int[] num = new int[n+1];

        for(int i =0;i<m;i++){
                int a = sc.nextInt();
                int b = sc.nextInt();
                flag[a][b]++;
                flag[b][a]++;
        }

        for(int i  =1;i<n+1;i++){
            for(int j =1;j<n+1;j++){
                num[i]+=flag[i][j];
            }
            System.out.println(num[i]);
        }
    }
} public class Main{

    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[][] flag = new int[n+1][n+1];
        //Arrays.fill(flag[][],false);
        int[] num = new int[n+1];

        for(int i =0;i<m;i++){
                int a = sc.nextInt();
                int b = sc.nextInt();
                flag[a][b]++;
                flag[b][a]++;
        }

        for(int i  =1;i<n+1;i++){
            for(int j =1;j<n+1;j++){
                num[i]+=flag[i][j];
            }
            System.out.println(num[i]);
        }
    }
} 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[][] flag = new int[n+1][n+1];
        //Arrays.fill(flag[][],false);
        int[] num = new int[n+1];

        for(int i =0;i<m;i++){
                int a = sc.nextInt();
                int b = sc.nextInt();
                flag[a][b]++;
                flag[b][a]++;
        }

        for(int i  =1;i<n+1;i++){
            for(int j =1;j<n+1;j++){
                num[i]+=flag[i][j];
            }
            System.out.println(num[i]);
        }
    }
}




