
import java.util.Scanner;

public class Main {

    private static Scanner scan = new Scanner(System.in);

    public static void main(String[] args) {
	int N = scan.nextInt();
	int M = scan.nextInt();

	int[] data = new int[N];

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

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

    private static Scanner scan = new Scanner(System.in);

    public static void main(String[] args) {
	int N = scan.nextInt();
	int M = scan.nextInt();

	int[] data = new int[N];

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

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

	int[] data = new int[N];

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

	for (int i = 0; i < N; i++) {
	    System.out.println(data[i]);
	}
	scan.close();
    } main {
	int N = scan.nextInt();
	int M = scan.nextInt();

	int[] data = new int[N];

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

	for (int i = 0; i < N; i++) {
	    System.out.println(data[i]);
	}
	scan.close();
    } int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int M = scan.nextInt(); M scan.nextInt() scan.nextInt scan int[] data = new int[N]; data new int[N] N for (int i = 0; i < M; i++) {
	    int a = scan.nextInt();
	    int b = scan.nextInt();
	    data[a-1]++;
	    data[b-1]++;
	} int i = 0; int i = 0; i 0 i < M i M i++ i++ i {
	    int a = scan.nextInt();
	    int b = scan.nextInt();
	    data[a-1]++;
	    data[b-1]++;
	} {
	    int a = scan.nextInt();
	    int b = scan.nextInt();
	    data[a-1]++;
	    data[b-1]++;
	} int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan data[a-1]++ data[a-1] data a-1 a 1 data[b-1]++ data[b-1] data b-1 b 1 for (int i = 0; i < N; i++) {
	    System.out.println(data[i]);
	} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
	    System.out.println(data[i]);
	} {
	    System.out.println(data[i]);
	} System.out.println(data[i]) System.out.println System.out System System.out data[i] data i scan.close() scan.close scan String[] args args public class Main {

    private static Scanner scan = new Scanner(System.in);

    public static void main(String[] args) {
	int N = scan.nextInt();
	int M = scan.nextInt();

	int[] data = new int[N];

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

	for (int i = 0; i < N; i++) {
	    System.out.println(data[i]);
	}
	scan.close();
    }
} public class Main {

    private static Scanner scan = new Scanner(System.in);

    public static void main(String[] args) {
	int N = scan.nextInt();
	int M = scan.nextInt();

	int[] data = new int[N];

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

	for (int i = 0; i < N; i++) {
	    System.out.println(data[i]);
	}
	scan.close();
    }
} Main

import java.util.Scanner;

public class Main {

    private static Scanner scan = new Scanner(System.in);

    public static void main(String[] args) {
	int N = scan.nextInt();
	int M = scan.nextInt();

	int[] data = new int[N];

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

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