import java.util.Scanner;

public class Main {

	@SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int[] l = new int[n];

		for (int i = 0; i < m; i++) {
			l[scanner.nextInt() - 1]++;
			l[scanner.nextInt() - 1]++;
		}

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

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

	@SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int[] l = new int[n];

		for (int i = 0; i < m; i++) {
			l[scanner.nextInt() - 1]++;
			l[scanner.nextInt() - 1]++;
		}

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

	}
} Main @SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int[] l = new int[n];

		for (int i = 0; i < m; i++) {
			l[scanner.nextInt() - 1]++;
			l[scanner.nextInt() - 1]++;
		}

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

	} main {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int[] l = new int[n];

		for (int i = 0; i < m; i++) {
			l[scanner.nextInt() - 1]++;
			l[scanner.nextInt() - 1]++;
		}

		for (int i = 0; i < l.length; i++) {
			System.out.println(l[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[] l = new int[n]; l new int[n] n for (int i = 0; i < m; i++) {
			l[scanner.nextInt() - 1]++;
			l[scanner.nextInt() - 1]++;
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			l[scanner.nextInt() - 1]++;
			l[scanner.nextInt() - 1]++;
		} {
			l[scanner.nextInt() - 1]++;
			l[scanner.nextInt() - 1]++;
		} l[scanner.nextInt() - 1]++ l[scanner.nextInt() - 1] l scanner.nextInt() - 1 scanner.nextInt() scanner.nextInt scanner 1 l[scanner.nextInt() - 1]++ l[scanner.nextInt() - 1] l scanner.nextInt() - 1 scanner.nextInt() scanner.nextInt scanner 1 for (int i = 0; i < l.length; i++) {
			System.out.println(l[i]);
		} int i = 0; int i = 0; i 0 i < l.length i l.length l l.length i++ i++ i {
			System.out.println(l[i]);
		} {
			System.out.println(l[i]);
		} System.out.println(l[i]) System.out.println System.out System System.out l[i] l i String args[] args public class Main {

	@SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int[] l = new int[n];

		for (int i = 0; i < m; i++) {
			l[scanner.nextInt() - 1]++;
			l[scanner.nextInt() - 1]++;
		}

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

	}
} public class Main {

	@SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int[] l = new int[n];

		for (int i = 0; i < m; i++) {
			l[scanner.nextInt() - 1]++;
			l[scanner.nextInt() - 1]++;
		}

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

	}
} Main
import java.util.Scanner;

public class Main {

	@SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int[] l = new int[n];

		for (int i = 0; i < m; i++) {
			l[scanner.nextInt() - 1]++;
			l[scanner.nextInt() - 1]++;
		}

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

	}
}