import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[] a = new int[m];
        int[] b = new int[m];
        for (int i = 0 ; i < m ; i++) {
            a[i] = sc.nextInt() - 1;
            b[i] = sc.nextInt() - 1;
        }
        int[][] c = new int[n][n];
        for (int i = 0 ; i < m ; i++) {
            c[a[i]][b[i]]++;
            c[b[i]][a[i]]++;
        }
        for (int i = 0 ; i < n ; i++) {
            int count = 0;
            for (int j = 0 ; j < n ; j++) {
                count += c[i][j];
            }
            System.out.println(count);
        }
    }

} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[] a = new int[m];
        int[] b = new int[m];
        for (int i = 0 ; i < m ; i++) {
            a[i] = sc.nextInt() - 1;
            b[i] = sc.nextInt() - 1;
        }
        int[][] c = new int[n][n];
        for (int i = 0 ; i < m ; i++) {
            c[a[i]][b[i]]++;
            c[b[i]][a[i]]++;
        }
        for (int i = 0 ; i < n ; i++) {
            int count = 0;
            for (int j = 0 ; j < n ; j++) {
                count += c[i][j];
            }
            System.out.println(count);
        }
    }

} Main public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[] a = new int[m];
        int[] b = new int[m];
        for (int i = 0 ; i < m ; i++) {
            a[i] = sc.nextInt() - 1;
            b[i] = sc.nextInt() - 1;
        }
        int[][] c = new int[n][n];
        for (int i = 0 ; i < m ; i++) {
            c[a[i]][b[i]]++;
            c[b[i]][a[i]]++;
        }
        for (int i = 0 ; i < n ; i++) {
            int count = 0;
            for (int j = 0 ; j < n ; j++) {
                count += c[i][j];
            }
            System.out.println(count);
        }
    } main {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[] a = new int[m];
        int[] b = new int[m];
        for (int i = 0 ; i < m ; i++) {
            a[i] = sc.nextInt() - 1;
            b[i] = sc.nextInt() - 1;
        }
        int[][] c = new int[n][n];
        for (int i = 0 ; i < m ; i++) {
            c[a[i]][b[i]]++;
            c[b[i]][a[i]]++;
        }
        for (int i = 0 ; i < n ; i++) {
            int count = 0;
            for (int j = 0 ; j < n ; j++) {
                count += c[i][j];
            }
            System.out.println(count);
        }
    } @SuppressWarnings("resource")
        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[] a = new int[m]; a new int[m] m int[] b = new int[m]; b new int[m] m for (int i = 0 ; i < m ; i++) {
            a[i] = sc.nextInt() - 1;
            b[i] = sc.nextInt() - 1;
        } int i = 0 ; int i = 0 ; i 0 i < m i m i++ i++ i {
            a[i] = sc.nextInt() - 1;
            b[i] = sc.nextInt() - 1;
        } {
            a[i] = sc.nextInt() - 1;
            b[i] = sc.nextInt() - 1;
        } a[i] = sc.nextInt() - 1 a[i] a i sc.nextInt() - 1 sc.nextInt() sc.nextInt sc 1 b[i] = sc.nextInt() - 1 b[i] b i sc.nextInt() - 1 sc.nextInt() sc.nextInt sc 1 int[][] c = new int[n][n]; c new int[n][n] n n for (int i = 0 ; i < m ; i++) {
            c[a[i]][b[i]]++;
            c[b[i]][a[i]]++;
        } int i = 0 ; int i = 0 ; i 0 i < m i m i++ i++ i {
            c[a[i]][b[i]]++;
            c[b[i]][a[i]]++;
        } {
            c[a[i]][b[i]]++;
            c[b[i]][a[i]]++;
        } c[a[i]][b[i]]++ c[a[i]][b[i]] c[a[i]] c a[i] a i b[i] b i c[b[i]][a[i]]++ c[b[i]][a[i]] c[b[i]] c b[i] b i a[i] a i for (int i = 0 ; i < n ; i++) {
            int count = 0;
            for (int j = 0 ; j < n ; j++) {
                count += c[i][j];
            }
            System.out.println(count);
        } int i = 0 ; int i = 0 ; i 0 i < n i n i++ i++ i {
            int count = 0;
            for (int j = 0 ; j < n ; j++) {
                count += c[i][j];
            }
            System.out.println(count);
        } {
            int count = 0;
            for (int j = 0 ; j < n ; j++) {
                count += c[i][j];
            }
            System.out.println(count);
        } int count = 0; count 0 for (int j = 0 ; j < n ; j++) {
                count += c[i][j];
            } int j = 0 ; int j = 0 ; j 0 j < n j n j++ j++ j {
                count += c[i][j];
            } {
                count += c[i][j];
            } count += c[i][j] count c[i][j] c[i] c i j System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {

    public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[] a = new int[m];
        int[] b = new int[m];
        for (int i = 0 ; i < m ; i++) {
            a[i] = sc.nextInt() - 1;
            b[i] = sc.nextInt() - 1;
        }
        int[][] c = new int[n][n];
        for (int i = 0 ; i < m ; i++) {
            c[a[i]][b[i]]++;
            c[b[i]][a[i]]++;
        }
        for (int i = 0 ; i < n ; i++) {
            int count = 0;
            for (int j = 0 ; j < n ; j++) {
                count += c[i][j];
            }
            System.out.println(count);
        }
    }

} public class Main {

    public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[] a = new int[m];
        int[] b = new int[m];
        for (int i = 0 ; i < m ; i++) {
            a[i] = sc.nextInt() - 1;
            b[i] = sc.nextInt() - 1;
        }
        int[][] c = new int[n][n];
        for (int i = 0 ; i < m ; i++) {
            c[a[i]][b[i]]++;
            c[b[i]][a[i]]++;
        }
        for (int i = 0 ; i < n ; i++) {
            int count = 0;
            for (int j = 0 ; j < n ; j++) {
                count += c[i][j];
            }
            System.out.println(count);
        }
    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[] a = new int[m];
        int[] b = new int[m];
        for (int i = 0 ; i < m ; i++) {
            a[i] = sc.nextInt() - 1;
            b[i] = sc.nextInt() - 1;
        }
        int[][] c = new int[n][n];
        for (int i = 0 ; i < m ; i++) {
            c[a[i]][b[i]]++;
            c[b[i]][a[i]]++;
        }
        for (int i = 0 ; i < n ; i++) {
            int count = 0;
            for (int j = 0 ; j < n ; j++) {
                count += c[i][j];
            }
            System.out.println(count);
        }
    }

}