import java.util.Scanner;
import java.util.Arrays;

class Main{
    public static void main(String args[]) {
        int[] a = new int[55];
        int[] b = new int[55];
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int M = scan.nextInt();
        for (int i = 0; i < M; i++)
        {
            a[i] = scan.nextInt();
            b[i] = scan.nextInt();
        }
        scan.close();
        int[] ans = new int[55];
        Arrays.fill(ans, 0);
        for (int i = 0; i < M; i++)
        {
            ans[a[i]]++;
            ans[b[i]]++;
        }
        for (int i = 1; i <= N; i++)
        {
            System.out.println(ans[i]);
        }
    }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util class Main{
    public static void main(String args[]) {
        int[] a = new int[55];
        int[] b = new int[55];
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int M = scan.nextInt();
        for (int i = 0; i < M; i++)
        {
            a[i] = scan.nextInt();
            b[i] = scan.nextInt();
        }
        scan.close();
        int[] ans = new int[55];
        Arrays.fill(ans, 0);
        for (int i = 0; i < M; i++)
        {
            ans[a[i]]++;
            ans[b[i]]++;
        }
        for (int i = 1; i <= N; i++)
        {
            System.out.println(ans[i]);
        }
    }
} Main public static void main(String args[]) {
        int[] a = new int[55];
        int[] b = new int[55];
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int M = scan.nextInt();
        for (int i = 0; i < M; i++)
        {
            a[i] = scan.nextInt();
            b[i] = scan.nextInt();
        }
        scan.close();
        int[] ans = new int[55];
        Arrays.fill(ans, 0);
        for (int i = 0; i < M; i++)
        {
            ans[a[i]]++;
            ans[b[i]]++;
        }
        for (int i = 1; i <= N; i++)
        {
            System.out.println(ans[i]);
        }
    } main {
        int[] a = new int[55];
        int[] b = new int[55];
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int M = scan.nextInt();
        for (int i = 0; i < M; i++)
        {
            a[i] = scan.nextInt();
            b[i] = scan.nextInt();
        }
        scan.close();
        int[] ans = new int[55];
        Arrays.fill(ans, 0);
        for (int i = 0; i < M; i++)
        {
            ans[a[i]]++;
            ans[b[i]]++;
        }
        for (int i = 1; i <= N; i++)
        {
            System.out.println(ans[i]);
        }
    } int[] a = new int[55]; a new int[55] 55 int[] b = new int[55]; b new int[55] 55 Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int M = scan.nextInt(); M scan.nextInt() scan.nextInt scan for (int i = 0; i < M; i++)
        {
            a[i] = scan.nextInt();
            b[i] = scan.nextInt();
        } int i = 0; int i = 0; i 0 i < M i M i++ i++ i {
            a[i] = scan.nextInt();
            b[i] = scan.nextInt();
        } {
            a[i] = scan.nextInt();
            b[i] = scan.nextInt();
        } a[i] = scan.nextInt() a[i] a i scan.nextInt() scan.nextInt scan b[i] = scan.nextInt() b[i] b i scan.nextInt() scan.nextInt scan scan.close() scan.close scan int[] ans = new int[55]; ans new int[55] 55 Arrays.fill(ans, 0) Arrays.fill Arrays ans 0 for (int i = 0; i < M; i++)
        {
            ans[a[i]]++;
            ans[b[i]]++;
        } int i = 0; int i = 0; i 0 i < M i M i++ i++ i {
            ans[a[i]]++;
            ans[b[i]]++;
        } {
            ans[a[i]]++;
            ans[b[i]]++;
        } ans[a[i]]++ ans[a[i]] ans a[i] a i ans[b[i]]++ ans[b[i]] ans b[i] b i for (int i = 1; i <= N; i++)
        {
            System.out.println(ans[i]);
        } int i = 1; int i = 1; i 1 i <= N i N i++ i++ i {
            System.out.println(ans[i]);
        } {
            System.out.println(ans[i]);
        } System.out.println(ans[i]) System.out.println System.out System System.out ans[i] ans i String args[] args
import java.util.Scanner;
import java.util.Arrays;

class Main{
    public static void main(String args[]) {
        int[] a = new int[55];
        int[] b = new int[55];
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int M = scan.nextInt();
        for (int i = 0; i < M; i++)
        {
            a[i] = scan.nextInt();
            b[i] = scan.nextInt();
        }
        scan.close();
        int[] ans = new int[55];
        Arrays.fill(ans, 0);
        for (int i = 0; i < M; i++)
        {
            ans[a[i]]++;
            ans[b[i]]++;
        }
        for (int i = 1; i <= N; i++)
        {
            System.out.println(ans[i]);
        }
    }
}
