
import java.util.Scanner;
import java.util.Stack;

public class Main {

    public static void main(String[] args) {
        Scanner Input = new Scanner(System.in);
        int N = Input.nextInt();
        int M = Input.nextInt();
        int A[][] = new int[N][N];
        for (int I = 0; I < M; I++) {
            int X = Input.nextInt();
            int Y = Input.nextInt();
            A[X-1][Y-1]++;
            A[Y-1][X-1]++;           
        }

        for (int R = 0; R < A.length; R++) {
            int Ko=0;
            for (int C = 0; C < A[0].length; C++) {
                Ko+=A[R][C];
            }
            System.out.println(Ko);
        }

    }
}

//Learn Before You Earn import java.util.Scanner; Scanner java.util import java.util.Stack; Stack java.util public class Main {

    public static void main(String[] args) {
        Scanner Input = new Scanner(System.in);
        int N = Input.nextInt();
        int M = Input.nextInt();
        int A[][] = new int[N][N];
        for (int I = 0; I < M; I++) {
            int X = Input.nextInt();
            int Y = Input.nextInt();
            A[X-1][Y-1]++;
            A[Y-1][X-1]++;           
        }

        for (int R = 0; R < A.length; R++) {
            int Ko=0;
            for (int C = 0; C < A[0].length; C++) {
                Ko+=A[R][C];
            }
            System.out.println(Ko);
        }

    }
} Main public static void main(String[] args) {
        Scanner Input = new Scanner(System.in);
        int N = Input.nextInt();
        int M = Input.nextInt();
        int A[][] = new int[N][N];
        for (int I = 0; I < M; I++) {
            int X = Input.nextInt();
            int Y = Input.nextInt();
            A[X-1][Y-1]++;
            A[Y-1][X-1]++;           
        }

        for (int R = 0; R < A.length; R++) {
            int Ko=0;
            for (int C = 0; C < A[0].length; C++) {
                Ko+=A[R][C];
            }
            System.out.println(Ko);
        }

    } main {
        Scanner Input = new Scanner(System.in);
        int N = Input.nextInt();
        int M = Input.nextInt();
        int A[][] = new int[N][N];
        for (int I = 0; I < M; I++) {
            int X = Input.nextInt();
            int Y = Input.nextInt();
            A[X-1][Y-1]++;
            A[Y-1][X-1]++;           
        }

        for (int R = 0; R < A.length; R++) {
            int Ko=0;
            for (int C = 0; C < A[0].length; C++) {
                Ko+=A[R][C];
            }
            System.out.println(Ko);
        }

    } Scanner Input = new Scanner(System.in); Input new Scanner(System.in) int N = Input.nextInt(); N Input.nextInt() Input.nextInt Input int M = Input.nextInt(); M Input.nextInt() Input.nextInt Input int A[][] = new int[N][N]; A new int[N][N] N N for (int I = 0; I < M; I++) {
            int X = Input.nextInt();
            int Y = Input.nextInt();
            A[X-1][Y-1]++;
            A[Y-1][X-1]++;           
        } int I = 0; int I = 0; I 0 I < M I M I++ I++ I {
            int X = Input.nextInt();
            int Y = Input.nextInt();
            A[X-1][Y-1]++;
            A[Y-1][X-1]++;           
        } {
            int X = Input.nextInt();
            int Y = Input.nextInt();
            A[X-1][Y-1]++;
            A[Y-1][X-1]++;           
        } int X = Input.nextInt(); X Input.nextInt() Input.nextInt Input int Y = Input.nextInt(); Y Input.nextInt() Input.nextInt Input A[X-1][Y-1]++ A[X-1][Y-1] A[X-1] A X-1 X 1 Y-1 Y 1 A[Y-1][X-1]++ A[Y-1][X-1] A[Y-1] A Y-1 Y 1 X-1 X 1 for (int R = 0; R < A.length; R++) {
            int Ko=0;
            for (int C = 0; C < A[0].length; C++) {
                Ko+=A[R][C];
            }
            System.out.println(Ko);
        } int R = 0; int R = 0; R 0 R < A.length R A.length A A.length R++ R++ R {
            int Ko=0;
            for (int C = 0; C < A[0].length; C++) {
                Ko+=A[R][C];
            }
            System.out.println(Ko);
        } {
            int Ko=0;
            for (int C = 0; C < A[0].length; C++) {
                Ko+=A[R][C];
            }
            System.out.println(Ko);
        } int Ko=0; Ko 0 for (int C = 0; C < A[0].length; C++) {
                Ko+=A[R][C];
            } int C = 0; int C = 0; C 0 C < A[0].length C A[0].length A[0] A 0 A[0].length C++ C++ C {
                Ko+=A[R][C];
            } {
                Ko+=A[R][C];
            } Ko+=A[R][C] Ko A[R][C] A[R] A R C System.out.println(Ko) System.out.println System.out System System.out Ko String[] args args public class Main {

    public static void main(String[] args) {
        Scanner Input = new Scanner(System.in);
        int N = Input.nextInt();
        int M = Input.nextInt();
        int A[][] = new int[N][N];
        for (int I = 0; I < M; I++) {
            int X = Input.nextInt();
            int Y = Input.nextInt();
            A[X-1][Y-1]++;
            A[Y-1][X-1]++;           
        }

        for (int R = 0; R < A.length; R++) {
            int Ko=0;
            for (int C = 0; C < A[0].length; C++) {
                Ko+=A[R][C];
            }
            System.out.println(Ko);
        }

    }
} public class Main {

    public static void main(String[] args) {
        Scanner Input = new Scanner(System.in);
        int N = Input.nextInt();
        int M = Input.nextInt();
        int A[][] = new int[N][N];
        for (int I = 0; I < M; I++) {
            int X = Input.nextInt();
            int Y = Input.nextInt();
            A[X-1][Y-1]++;
            A[Y-1][X-1]++;           
        }

        for (int R = 0; R < A.length; R++) {
            int Ko=0;
            for (int C = 0; C < A[0].length; C++) {
                Ko+=A[R][C];
            }
            System.out.println(Ko);
        }

    }
} Main

import java.util.Scanner;
import java.util.Stack;

public class Main {

    public static void main(String[] args) {
        Scanner Input = new Scanner(System.in);
        int N = Input.nextInt();
        int M = Input.nextInt();
        int A[][] = new int[N][N];
        for (int I = 0; I < M; I++) {
            int X = Input.nextInt();
            int Y = Input.nextInt();
            A[X-1][Y-1]++;
            A[Y-1][X-1]++;           
        }

        for (int R = 0; R < A.length; R++) {
            int Ko=0;
            for (int C = 0; C < A[0].length; C++) {
                Ko+=A[R][C];
            }
            System.out.println(Ko);
        }

    }
}

//Learn Before You Earn
