import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int M = scanner.nextInt();
		int[] a = new int[M];
		int[] b = new int[M];
		int[] ans = new int[N + 1];
		for (int i = 0; i < M; i++) {
			a[i] = scanner.nextInt();
			b[i] = scanner.nextInt();
			ans[a[i]]++;
			ans[b[i]]++;
		}
		scanner.close();

		for(int i = 1; i < ans.length; i++) {
			System.out.println(ans[i]);
		}
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int M = scanner.nextInt();
		int[] a = new int[M];
		int[] b = new int[M];
		int[] ans = new int[N + 1];
		for (int i = 0; i < M; i++) {
			a[i] = scanner.nextInt();
			b[i] = scanner.nextInt();
			ans[a[i]]++;
			ans[b[i]]++;
		}
		scanner.close();

		for(int i = 1; i < ans.length; i++) {
			System.out.println(ans[i]);
		}
	}

} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int M = scanner.nextInt();
		int[] a = new int[M];
		int[] b = new int[M];
		int[] ans = new int[N + 1];
		for (int i = 0; i < M; i++) {
			a[i] = scanner.nextInt();
			b[i] = scanner.nextInt();
			ans[a[i]]++;
			ans[b[i]]++;
		}
		scanner.close();

		for(int i = 1; i < ans.length; i++) {
			System.out.println(ans[i]);
		}
	} main {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int M = scanner.nextInt();
		int[] a = new int[M];
		int[] b = new int[M];
		int[] ans = new int[N + 1];
		for (int i = 0; i < M; i++) {
			a[i] = scanner.nextInt();
			b[i] = scanner.nextInt();
			ans[a[i]]++;
			ans[b[i]]++;
		}
		scanner.close();

		for(int i = 1; i < ans.length; i++) {
			System.out.println(ans[i]);
		}
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int M = scanner.nextInt(); M scanner.nextInt() scanner.nextInt scanner int[] a = new int[M]; a new int[M] M int[] b = new int[M]; b new int[M] M int[] ans = new int[N + 1]; ans new int[N + 1] N + 1 N 1 for (int i = 0; i < M; i++) {
			a[i] = scanner.nextInt();
			b[i] = scanner.nextInt();
			ans[a[i]]++;
			ans[b[i]]++;
		} int i = 0; int i = 0; i 0 i < M i M i++ i++ i {
			a[i] = scanner.nextInt();
			b[i] = scanner.nextInt();
			ans[a[i]]++;
			ans[b[i]]++;
		} {
			a[i] = scanner.nextInt();
			b[i] = scanner.nextInt();
			ans[a[i]]++;
			ans[b[i]]++;
		} a[i] = scanner.nextInt() a[i] a i scanner.nextInt() scanner.nextInt scanner b[i] = scanner.nextInt() b[i] b i scanner.nextInt() scanner.nextInt scanner ans[a[i]]++ ans[a[i]] ans a[i] a i ans[b[i]]++ ans[b[i]] ans b[i] b i scanner.close() scanner.close scanner for(int i = 1; i < ans.length; i++) {
			System.out.println(ans[i]);
		} int i = 1; int i = 1; i 1 i < ans.length i ans.length ans ans.length i++ i++ i {
			System.out.println(ans[i]);
		} {
			System.out.println(ans[i]);
		} System.out.println(ans[i]) System.out.println System.out System System.out ans[i] ans i String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int M = scanner.nextInt();
		int[] a = new int[M];
		int[] b = new int[M];
		int[] ans = new int[N + 1];
		for (int i = 0; i < M; i++) {
			a[i] = scanner.nextInt();
			b[i] = scanner.nextInt();
			ans[a[i]]++;
			ans[b[i]]++;
		}
		scanner.close();

		for(int i = 1; i < ans.length; i++) {
			System.out.println(ans[i]);
		}
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int M = scanner.nextInt();
		int[] a = new int[M];
		int[] b = new int[M];
		int[] ans = new int[N + 1];
		for (int i = 0; i < M; i++) {
			a[i] = scanner.nextInt();
			b[i] = scanner.nextInt();
			ans[a[i]]++;
			ans[b[i]]++;
		}
		scanner.close();

		for(int i = 1; i < ans.length; i++) {
			System.out.println(ans[i]);
		}
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int M = scanner.nextInt();
		int[] a = new int[M];
		int[] b = new int[M];
		int[] ans = new int[N + 1];
		for (int i = 0; i < M; i++) {
			a[i] = scanner.nextInt();
			b[i] = scanner.nextInt();
			ans[a[i]]++;
			ans[b[i]]++;
		}
		scanner.close();

		for(int i = 1; i < ans.length; i++) {
			System.out.println(ans[i]);
		}
	}

}
