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[] city = new int[n];

		for (int i = 0; i < m; i++) {
			scanner.nextLine();
			int a = scanner.nextInt();
			int b = scanner.nextInt();

			city[a - 1]++;
			city[b - 1]++;
		}
		for (int i = 0; i < n; i++) {
			System.out.println(city[i]);
		}
		scanner.close();
	}
} 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[] city = new int[n];

		for (int i = 0; i < m; i++) {
			scanner.nextLine();
			int a = scanner.nextInt();
			int b = scanner.nextInt();

			city[a - 1]++;
			city[b - 1]++;
		}
		for (int i = 0; i < n; i++) {
			System.out.println(city[i]);
		}
		scanner.close();
	}
} Main public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);

		int n = scanner.nextInt();
		int m = scanner.nextInt();

		int[] city = new int[n];

		for (int i = 0; i < m; i++) {
			scanner.nextLine();
			int a = scanner.nextInt();
			int b = scanner.nextInt();

			city[a - 1]++;
			city[b - 1]++;
		}
		for (int i = 0; i < n; i++) {
			System.out.println(city[i]);
		}
		scanner.close();
	} main {
		Scanner scanner = new Scanner(System.in);

		int n = scanner.nextInt();
		int m = scanner.nextInt();

		int[] city = new int[n];

		for (int i = 0; i < m; i++) {
			scanner.nextLine();
			int a = scanner.nextInt();
			int b = scanner.nextInt();

			city[a - 1]++;
			city[b - 1]++;
		}
		for (int i = 0; i < n; i++) {
			System.out.println(city[i]);
		}
		scanner.close();
	} 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[] city = new int[n]; city new int[n] n for (int i = 0; i < m; i++) {
			scanner.nextLine();
			int a = scanner.nextInt();
			int b = scanner.nextInt();

			city[a - 1]++;
			city[b - 1]++;
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			scanner.nextLine();
			int a = scanner.nextInt();
			int b = scanner.nextInt();

			city[a - 1]++;
			city[b - 1]++;
		} {
			scanner.nextLine();
			int a = scanner.nextInt();
			int b = scanner.nextInt();

			city[a - 1]++;
			city[b - 1]++;
		} scanner.nextLine() scanner.nextLine scanner int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner city[a - 1]++ city[a - 1] city a - 1 a 1 city[b - 1]++ city[b - 1] city b - 1 b 1 for (int i = 0; i < n; i++) {
			System.out.println(city[i]);
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			System.out.println(city[i]);
		} {
			System.out.println(city[i]);
		} System.out.println(city[i]) System.out.println System.out System System.out city[i] city i scanner.close() scanner.close scanner 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[] city = new int[n];

		for (int i = 0; i < m; i++) {
			scanner.nextLine();
			int a = scanner.nextInt();
			int b = scanner.nextInt();

			city[a - 1]++;
			city[b - 1]++;
		}
		for (int i = 0; i < n; i++) {
			System.out.println(city[i]);
		}
		scanner.close();
	}
} public class Main {

	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);

		int n = scanner.nextInt();
		int m = scanner.nextInt();

		int[] city = new int[n];

		for (int i = 0; i < m; i++) {
			scanner.nextLine();
			int a = scanner.nextInt();
			int b = scanner.nextInt();

			city[a - 1]++;
			city[b - 1]++;
		}
		for (int i = 0; i < n; i++) {
			System.out.println(city[i]);
		}
		scanner.close();
	}
} 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[] city = new int[n];

		for (int i = 0; i < m; i++) {
			scanner.nextLine();
			int a = scanner.nextInt();
			int b = scanner.nextInt();

			city[a - 1]++;
			city[b - 1]++;
		}
		for (int i = 0; i < n; i++) {
			System.out.println(city[i]);
		}
		scanner.close();
	}
}
