import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int M = sc.nextInt();


        int[] roadSum = new int[N];

        for (int i = 0; i < M; i++) {
            int a = sc.nextInt() - 1;
            int b = sc.nextInt() - 1;

            //a < b とする処理
            if (a > b) {
                int tmp = b;
                b = a;
                a = tmp;
            }
            roadSum[a]++;
            roadSum[b]++;

        }
        for (int i = 0; i < N; i++) {
            System.out.println(roadSum[i]);
        }
    }
} import java.util.Scanner; Scanner 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[] roadSum = new int[N];

        for (int i = 0; i < M; i++) {
            int a = sc.nextInt() - 1;
            int b = sc.nextInt() - 1;

            //a < b とする処理
            if (a > b) {
                int tmp = b;
                b = a;
                a = tmp;
            }
            roadSum[a]++;
            roadSum[b]++;

        }
        for (int i = 0; i < N; i++) {
            System.out.println(roadSum[i]);
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int M = sc.nextInt();


        int[] roadSum = new int[N];

        for (int i = 0; i < M; i++) {
            int a = sc.nextInt() - 1;
            int b = sc.nextInt() - 1;

            //a < b とする処理
            if (a > b) {
                int tmp = b;
                b = a;
                a = tmp;
            }
            roadSum[a]++;
            roadSum[b]++;

        }
        for (int i = 0; i < N; i++) {
            System.out.println(roadSum[i]);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int M = sc.nextInt();


        int[] roadSum = new int[N];

        for (int i = 0; i < M; i++) {
            int a = sc.nextInt() - 1;
            int b = sc.nextInt() - 1;

            //a < b とする処理
            if (a > b) {
                int tmp = b;
                b = a;
                a = tmp;
            }
            roadSum[a]++;
            roadSum[b]++;

        }
        for (int i = 0; i < N; i++) {
            System.out.println(roadSum[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[] roadSum = new int[N]; roadSum new int[N] N for (int i = 0; i < M; i++) {
            int a = sc.nextInt() - 1;
            int b = sc.nextInt() - 1;

            //a < b とする処理
            if (a > b) {
                int tmp = b;
                b = a;
                a = tmp;
            }
            roadSum[a]++;
            roadSum[b]++;

        } int i = 0; int i = 0; i 0 i < M i M i++ i++ i {
            int a = sc.nextInt() - 1;
            int b = sc.nextInt() - 1;

            //a < b とする処理
            if (a > b) {
                int tmp = b;
                b = a;
                a = tmp;
            }
            roadSum[a]++;
            roadSum[b]++;

        } {
            int a = sc.nextInt() - 1;
            int b = sc.nextInt() - 1;

            //a < b とする処理
            if (a > b) {
                int tmp = b;
                b = a;
                a = tmp;
            }
            roadSum[a]++;
            roadSum[b]++;

        } int a = sc.nextInt() - 1; a sc.nextInt() - 1 sc.nextInt() sc.nextInt sc 1 int b = sc.nextInt() - 1; b sc.nextInt() - 1 sc.nextInt() sc.nextInt sc 1 if (a > b) {
                int tmp = b;
                b = a;
                a = tmp;
            } a > b a b {
                int tmp = b;
                b = a;
                a = tmp;
            } int tmp = b; tmp b b = a b a a = tmp a tmp roadSum[a]++ roadSum[a] roadSum a roadSum[b]++ roadSum[b] roadSum b for (int i = 0; i < N; i++) {
            System.out.println(roadSum[i]);
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            System.out.println(roadSum[i]);
        } {
            System.out.println(roadSum[i]);
        } System.out.println(roadSum[i]) System.out.println System.out System System.out roadSum[i] roadSum 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[] roadSum = new int[N];

        for (int i = 0; i < M; i++) {
            int a = sc.nextInt() - 1;
            int b = sc.nextInt() - 1;

            //a < b とする処理
            if (a > b) {
                int tmp = b;
                b = a;
                a = tmp;
            }
            roadSum[a]++;
            roadSum[b]++;

        }
        for (int i = 0; i < N; i++) {
            System.out.println(roadSum[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[] roadSum = new int[N];

        for (int i = 0; i < M; i++) {
            int a = sc.nextInt() - 1;
            int b = sc.nextInt() - 1;

            //a < b とする処理
            if (a > b) {
                int tmp = b;
                b = a;
                a = tmp;
            }
            roadSum[a]++;
            roadSum[b]++;

        }
        for (int i = 0; i < N; i++) {
            System.out.println(roadSum[i]);
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int M = sc.nextInt();


        int[] roadSum = new int[N];

        for (int i = 0; i < M; i++) {
            int a = sc.nextInt() - 1;
            int b = sc.nextInt() - 1;

            //a < b とする処理
            if (a > b) {
                int tmp = b;
                b = a;
                a = tmp;
            }
            roadSum[a]++;
            roadSum[b]++;

        }
        for (int i = 0; i < N; i++) {
            System.out.println(roadSum[i]);
        }
    }
}
