import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        int N = cin.nextInt();
        int M = cin.nextInt();
        int[] a = new int[M * 2];
        for (int i = 0; i < M * 2; i++) {
            a[i] = cin.nextInt();
        }

        int[] x = new int[N];

        for (int i = 0; i < M * 2; i++) {
            x[a[i] - 1]++;
        }

        for (int i = 0; i < N; i++) {
            System.out.println(x[i]);
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        int N = cin.nextInt();
        int M = cin.nextInt();
        int[] a = new int[M * 2];
        for (int i = 0; i < M * 2; i++) {
            a[i] = cin.nextInt();
        }

        int[] x = new int[N];

        for (int i = 0; i < M * 2; i++) {
            x[a[i] - 1]++;
        }

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

        int[] x = new int[N];

        for (int i = 0; i < M * 2; i++) {
            x[a[i] - 1]++;
        }

        for (int i = 0; i < N; i++) {
            System.out.println(x[i]);
        }
    } main {
        Scanner cin = new Scanner(System.in);
        int N = cin.nextInt();
        int M = cin.nextInt();
        int[] a = new int[M * 2];
        for (int i = 0; i < M * 2; i++) {
            a[i] = cin.nextInt();
        }

        int[] x = new int[N];

        for (int i = 0; i < M * 2; i++) {
            x[a[i] - 1]++;
        }

        for (int i = 0; i < N; i++) {
            System.out.println(x[i]);
        }
    } Scanner cin = new Scanner(System.in); cin new Scanner(System.in) int N = cin.nextInt(); N cin.nextInt() cin.nextInt cin int M = cin.nextInt(); M cin.nextInt() cin.nextInt cin int[] a = new int[M * 2]; a new int[M * 2] M * 2 M 2 for (int i = 0; i < M * 2; i++) {
            a[i] = cin.nextInt();
        } int i = 0; int i = 0; i 0 i < M * 2 i M * 2 M 2 i++ i++ i {
            a[i] = cin.nextInt();
        } {
            a[i] = cin.nextInt();
        } a[i] = cin.nextInt() a[i] a i cin.nextInt() cin.nextInt cin int[] x = new int[N]; x new int[N] N for (int i = 0; i < M * 2; i++) {
            x[a[i] - 1]++;
        } int i = 0; int i = 0; i 0 i < M * 2 i M * 2 M 2 i++ i++ i {
            x[a[i] - 1]++;
        } {
            x[a[i] - 1]++;
        } x[a[i] - 1]++ x[a[i] - 1] x a[i] - 1 a[i] a i 1 for (int i = 0; i < N; i++) {
            System.out.println(x[i]);
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            System.out.println(x[i]);
        } {
            System.out.println(x[i]);
        } System.out.println(x[i]) System.out.println System.out System System.out x[i] x i String[] args args public class Main {
    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        int N = cin.nextInt();
        int M = cin.nextInt();
        int[] a = new int[M * 2];
        for (int i = 0; i < M * 2; i++) {
            a[i] = cin.nextInt();
        }

        int[] x = new int[N];

        for (int i = 0; i < M * 2; i++) {
            x[a[i] - 1]++;
        }

        for (int i = 0; i < N; i++) {
            System.out.println(x[i]);
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        int N = cin.nextInt();
        int M = cin.nextInt();
        int[] a = new int[M * 2];
        for (int i = 0; i < M * 2; i++) {
            a[i] = cin.nextInt();
        }

        int[] x = new int[N];

        for (int i = 0; i < M * 2; i++) {
            x[a[i] - 1]++;
        }

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

public class Main {
    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        int N = cin.nextInt();
        int M = cin.nextInt();
        int[] a = new int[M * 2];
        for (int i = 0; i < M * 2; i++) {
            a[i] = cin.nextInt();
        }

        int[] x = new int[N];

        for (int i = 0; i < M * 2; i++) {
            x[a[i] - 1]++;
        }

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