import java.util.Scanner;

/**
 * Created by sonetsuyoshi on 2016/07/31.
 */
public class Main {

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

        int[] counts = new int[N];

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

        for(int count: counts) System.out.println(count);
    }
} import java.util.Scanner; Scanner java.util public class Main {

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

        int[] counts = new int[N];

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

        for(int count: counts) System.out.println(count);
    }
} Main static public void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int M = sc.nextInt();

        int[] counts = new int[N];

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

        for(int count: counts) System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int M = sc.nextInt();

        int[] counts = new int[N];

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

        for(int count: counts) System.out.println(count);
    } 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[] counts = new int[N]; counts new int[N] N for(int i = 0; i < M; i++) {
            int a = sc.nextInt() - 1;
            int b = sc.nextInt() - 1;
            counts[a]++;
            counts[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;
            counts[a]++;
            counts[b]++;
        } {
            int a = sc.nextInt() - 1;
            int b = sc.nextInt() - 1;
            counts[a]++;
            counts[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 counts[a]++ counts[a] counts a counts[b]++ counts[b] counts b for(int count: counts) System.out.println(count); int count counts System.out.println(count); System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {

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

        int[] counts = new int[N];

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

        for(int count: counts) System.out.println(count);
    }
} public class Main {

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

        int[] counts = new int[N];

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

        for(int count: counts) System.out.println(count);
    }
} Main
import java.util.Scanner;

/**
 * Created by sonetsuyoshi on 2016/07/31.
 */
public class Main {

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

        int[] counts = new int[N];

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

        for(int count: counts) System.out.println(count);
    }
}