import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int N = scan.nextInt();
        int M = scan.nextInt();
        int[] c = new int[N];
        for (int i = 0; i < M; i++) {
            int a = scan.nextInt();
            int b = scan.nextInt();
            c[a-1] += 1;
            c[b-1] += 1;
        }
        for (int i : c) {
            System.out.println(i);
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int N = scan.nextInt();
        int M = scan.nextInt();
        int[] c = new int[N];
        for (int i = 0; i < M; i++) {
            int a = scan.nextInt();
            int b = scan.nextInt();
            c[a-1] += 1;
            c[b-1] += 1;
        }
        for (int i : c) {
            System.out.println(i);
        }
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int N = scan.nextInt();
        int M = scan.nextInt();
        int[] c = new int[N];
        for (int i = 0; i < M; i++) {
            int a = scan.nextInt();
            int b = scan.nextInt();
            c[a-1] += 1;
            c[b-1] += 1;
        }
        for (int i : c) {
            System.out.println(i);
        }
    } main {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int N = scan.nextInt();
        int M = scan.nextInt();
        int[] c = new int[N];
        for (int i = 0; i < M; i++) {
            int a = scan.nextInt();
            int b = scan.nextInt();
            c[a-1] += 1;
            c[b-1] += 1;
        }
        for (int i : c) {
            System.out.println(i);
        }
    } Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in))); scan new Scanner(new BufferedReader(new InputStreamReader(System.in))) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int M = scan.nextInt(); M scan.nextInt() scan.nextInt scan int[] c = new int[N]; c new int[N] N for (int i = 0; i < M; i++) {
            int a = scan.nextInt();
            int b = scan.nextInt();
            c[a-1] += 1;
            c[b-1] += 1;
        } int i = 0; int i = 0; i 0 i < M i M i++ i++ i {
            int a = scan.nextInt();
            int b = scan.nextInt();
            c[a-1] += 1;
            c[b-1] += 1;
        } {
            int a = scan.nextInt();
            int b = scan.nextInt();
            c[a-1] += 1;
            c[b-1] += 1;
        } int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan c[a-1] += 1 c[a-1] c a-1 a 1 1 c[b-1] += 1 c[b-1] c b-1 b 1 1 for (int i : c) {
            System.out.println(i);
        } int i c {
            System.out.println(i);
        } {
            System.out.println(i);
        } System.out.println(i) System.out.println System.out System System.out i String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int N = scan.nextInt();
        int M = scan.nextInt();
        int[] c = new int[N];
        for (int i = 0; i < M; i++) {
            int a = scan.nextInt();
            int b = scan.nextInt();
            c[a-1] += 1;
            c[b-1] += 1;
        }
        for (int i : c) {
            System.out.println(i);
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int N = scan.nextInt();
        int M = scan.nextInt();
        int[] c = new int[N];
        for (int i = 0; i < M; i++) {
            int a = scan.nextInt();
            int b = scan.nextInt();
            c[a-1] += 1;
            c[b-1] += 1;
        }
        for (int i : c) {
            System.out.println(i);
        }
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int N = scan.nextInt();
        int M = scan.nextInt();
        int[] c = new int[N];
        for (int i = 0; i < M; i++) {
            int a = scan.nextInt();
            int b = scan.nextInt();
            c[a-1] += 1;
            c[b-1] += 1;
        }
        for (int i : c) {
            System.out.println(i);
        }
    }
}
