import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner stdin = new Scanner(System.in);
		int n, k, a, b;
		n = stdin.nextInt();
		k = stdin.nextInt();
		int c[] = new int[n];
		for (int i = 0; i < k; i++) {
			a = stdin.nextInt();
			b = stdin.nextInt();
			c[a - 1]++;
			c[b - 1]++;
		}
		for (int j = 0; j < n; j++) {
			System.out.println(c[j]);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner stdin = new Scanner(System.in);
		int n, k, a, b;
		n = stdin.nextInt();
		k = stdin.nextInt();
		int c[] = new int[n];
		for (int i = 0; i < k; i++) {
			a = stdin.nextInt();
			b = stdin.nextInt();
			c[a - 1]++;
			c[b - 1]++;
		}
		for (int j = 0; j < n; j++) {
			System.out.println(c[j]);
		}
	}
} Main public static void main(String[] args) {
		Scanner stdin = new Scanner(System.in);
		int n, k, a, b;
		n = stdin.nextInt();
		k = stdin.nextInt();
		int c[] = new int[n];
		for (int i = 0; i < k; i++) {
			a = stdin.nextInt();
			b = stdin.nextInt();
			c[a - 1]++;
			c[b - 1]++;
		}
		for (int j = 0; j < n; j++) {
			System.out.println(c[j]);
		}
	} main {
		Scanner stdin = new Scanner(System.in);
		int n, k, a, b;
		n = stdin.nextInt();
		k = stdin.nextInt();
		int c[] = new int[n];
		for (int i = 0; i < k; i++) {
			a = stdin.nextInt();
			b = stdin.nextInt();
			c[a - 1]++;
			c[b - 1]++;
		}
		for (int j = 0; j < n; j++) {
			System.out.println(c[j]);
		}
	} Scanner stdin = new Scanner(System.in); stdin new Scanner(System.in) int n n k k a a b; b n = stdin.nextInt() n stdin.nextInt() stdin.nextInt stdin k = stdin.nextInt() k stdin.nextInt() stdin.nextInt stdin int c[] = new int[n]; c new int[n] n for (int i = 0; i < k; i++) {
			a = stdin.nextInt();
			b = stdin.nextInt();
			c[a - 1]++;
			c[b - 1]++;
		} int i = 0; int i = 0; i 0 i < k i k i++ i++ i {
			a = stdin.nextInt();
			b = stdin.nextInt();
			c[a - 1]++;
			c[b - 1]++;
		} {
			a = stdin.nextInt();
			b = stdin.nextInt();
			c[a - 1]++;
			c[b - 1]++;
		} a = stdin.nextInt() a stdin.nextInt() stdin.nextInt stdin b = stdin.nextInt() b stdin.nextInt() stdin.nextInt stdin c[a - 1]++ c[a - 1] c a - 1 a 1 c[b - 1]++ c[b - 1] c b - 1 b 1 for (int j = 0; j < n; j++) {
			System.out.println(c[j]);
		} int j = 0; int j = 0; j 0 j < n j n j++ j++ j {
			System.out.println(c[j]);
		} {
			System.out.println(c[j]);
		} System.out.println(c[j]) System.out.println System.out System System.out c[j] c j String[] args args public class Main {

	public static void main(String[] args) {
		Scanner stdin = new Scanner(System.in);
		int n, k, a, b;
		n = stdin.nextInt();
		k = stdin.nextInt();
		int c[] = new int[n];
		for (int i = 0; i < k; i++) {
			a = stdin.nextInt();
			b = stdin.nextInt();
			c[a - 1]++;
			c[b - 1]++;
		}
		for (int j = 0; j < n; j++) {
			System.out.println(c[j]);
		}
	}
} public class Main {

	public static void main(String[] args) {
		Scanner stdin = new Scanner(System.in);
		int n, k, a, b;
		n = stdin.nextInt();
		k = stdin.nextInt();
		int c[] = new int[n];
		for (int i = 0; i < k; i++) {
			a = stdin.nextInt();
			b = stdin.nextInt();
			c[a - 1]++;
			c[b - 1]++;
		}
		for (int j = 0; j < n; j++) {
			System.out.println(c[j]);
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner stdin = new Scanner(System.in);
		int n, k, a, b;
		n = stdin.nextInt();
		k = stdin.nextInt();
		int c[] = new int[n];
		for (int i = 0; i < k; i++) {
			a = stdin.nextInt();
			b = stdin.nextInt();
			c[a - 1]++;
			c[b - 1]++;
		}
		for (int j = 0; j < n; j++) {
			System.out.println(c[j]);
		}
	}
}
