import java.util.Scanner;

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

		for (int i = 0; i < M; i++) {
			c[sc.nextInt()]++;
			c[sc.nextInt()]++;
		}
		for (int i = 1; i <= N; i++) {
			System.out.println(c[i]);
		}

		sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner((System.in));
		int N = sc.nextInt();
		int M = sc.nextInt();
		int[] c = new int[N+1];

		for (int i = 0; i < M; i++) {
			c[sc.nextInt()]++;
			c[sc.nextInt()]++;
		}
		for (int i = 1; i <= N; i++) {
			System.out.println(c[i]);
		}

		sc.close();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner((System.in));
		int N = sc.nextInt();
		int M = sc.nextInt();
		int[] c = new int[N+1];

		for (int i = 0; i < M; i++) {
			c[sc.nextInt()]++;
			c[sc.nextInt()]++;
		}
		for (int i = 1; i <= N; i++) {
			System.out.println(c[i]);
		}

		sc.close();
	} main {
		Scanner sc = new Scanner((System.in));
		int N = sc.nextInt();
		int M = sc.nextInt();
		int[] c = new int[N+1];

		for (int i = 0; i < M; i++) {
			c[sc.nextInt()]++;
			c[sc.nextInt()]++;
		}
		for (int i = 1; i <= N; i++) {
			System.out.println(c[i]);
		}

		sc.close();
	} 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[] c = new int[N+1]; c new int[N+1] N+1 N 1 for (int i = 0; i < M; i++) {
			c[sc.nextInt()]++;
			c[sc.nextInt()]++;
		} int i = 0; int i = 0; i 0 i < M i M i++ i++ i {
			c[sc.nextInt()]++;
			c[sc.nextInt()]++;
		} {
			c[sc.nextInt()]++;
			c[sc.nextInt()]++;
		} c[sc.nextInt()]++ c[sc.nextInt()] c sc.nextInt() sc.nextInt sc c[sc.nextInt()]++ c[sc.nextInt()] c sc.nextInt() sc.nextInt sc for (int i = 1; i <= N; i++) {
			System.out.println(c[i]);
		} int i = 1; int i = 1; i 1 i <= N i N i++ i++ i {
			System.out.println(c[i]);
		} {
			System.out.println(c[i]);
		} System.out.println(c[i]) System.out.println System.out System System.out c[i] c i sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner((System.in));
		int N = sc.nextInt();
		int M = sc.nextInt();
		int[] c = new int[N+1];

		for (int i = 0; i < M; i++) {
			c[sc.nextInt()]++;
			c[sc.nextInt()]++;
		}
		for (int i = 1; i <= N; i++) {
			System.out.println(c[i]);
		}

		sc.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner((System.in));
		int N = sc.nextInt();
		int M = sc.nextInt();
		int[] c = new int[N+1];

		for (int i = 0; i < M; i++) {
			c[sc.nextInt()]++;
			c[sc.nextInt()]++;
		}
		for (int i = 1; i <= N; i++) {
			System.out.println(c[i]);
		}

		sc.close();
	}
} Main
import java.util.Scanner;

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

		for (int i = 0; i < M; i++) {
			c[sc.nextInt()]++;
			c[sc.nextInt()]++;
		}
		for (int i = 1; i <= N; i++) {
			System.out.println(c[i]);
		}

		sc.close();
	}
}
