import java.util.Scanner;

class Main {

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

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

		int r[][] = new int[n][n];
		for (int i = 0; i < m; i++) {
			int a = sc.nextInt() - 1;
			int b = sc.nextInt() - 1;

			r[a][b]++;
			r[b][a]++;
		}

		for (int i = 0; i < n; i++) {
			int sum = 0;
			for (int j = 0; j < n; j++) {
				sum += r[i][j];
			}
			System.out.println(sum);
		}

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

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

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

		int r[][] = new int[n][n];
		for (int i = 0; i < m; i++) {
			int a = sc.nextInt() - 1;
			int b = sc.nextInt() - 1;

			r[a][b]++;
			r[b][a]++;
		}

		for (int i = 0; i < n; i++) {
			int sum = 0;
			for (int j = 0; j < n; j++) {
				sum += r[i][j];
			}
			System.out.println(sum);
		}

		sc.close();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

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

		int r[][] = new int[n][n];
		for (int i = 0; i < m; i++) {
			int a = sc.nextInt() - 1;
			int b = sc.nextInt() - 1;

			r[a][b]++;
			r[b][a]++;
		}

		for (int i = 0; i < n; i++) {
			int sum = 0;
			for (int j = 0; j < n; j++) {
				sum += r[i][j];
			}
			System.out.println(sum);
		}

		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);

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

		int r[][] = new int[n][n];
		for (int i = 0; i < m; i++) {
			int a = sc.nextInt() - 1;
			int b = sc.nextInt() - 1;

			r[a][b]++;
			r[b][a]++;
		}

		for (int i = 0; i < n; i++) {
			int sum = 0;
			for (int j = 0; j < n; j++) {
				sum += r[i][j];
			}
			System.out.println(sum);
		}

		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 r[][] = new int[n][n]; r new int[n][n] n n for (int i = 0; i < m; i++) {
			int a = sc.nextInt() - 1;
			int b = sc.nextInt() - 1;

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

			r[a][b]++;
			r[b][a]++;
		} {
			int a = sc.nextInt() - 1;
			int b = sc.nextInt() - 1;

			r[a][b]++;
			r[b][a]++;
		} int a = sc.nextInt() - 1; a sc.nextInt() - 1 sc.nextInt() sc.nextInt sc 1 int b = sc.nextInt() - 1; b sc.nextInt() - 1 sc.nextInt() sc.nextInt sc 1 r[a][b]++ r[a][b] r[a] r a b r[b][a]++ r[b][a] r[b] r b a for (int i = 0; i < n; i++) {
			int sum = 0;
			for (int j = 0; j < n; j++) {
				sum += r[i][j];
			}
			System.out.println(sum);
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int sum = 0;
			for (int j = 0; j < n; j++) {
				sum += r[i][j];
			}
			System.out.println(sum);
		} {
			int sum = 0;
			for (int j = 0; j < n; j++) {
				sum += r[i][j];
			}
			System.out.println(sum);
		} int sum = 0; sum 0 for (int j = 0; j < n; j++) {
				sum += r[i][j];
			} int j = 0; int j = 0; j 0 j < n j n j++ j++ j {
				sum += r[i][j];
			} {
				sum += r[i][j];
			} sum += r[i][j] sum r[i][j] r[i] r i j System.out.println(sum) System.out.println System.out System System.out sum sc.close() sc.close sc String[] args args
import java.util.Scanner;

class Main {

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

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

		int r[][] = new int[n][n];
		for (int i = 0; i < m; i++) {
			int a = sc.nextInt() - 1;
			int b = sc.nextInt() - 1;

			r[a][b]++;
			r[b][a]++;
		}

		for (int i = 0; i < n; i++) {
			int sum = 0;
			for (int j = 0; j < n; j++) {
				sum += r[i][j];
			}
			System.out.println(sum);
		}

		sc.close();
	}
}
