import java.util.Arrays;
import java.util.Scanner;

public class Main {

	private static final long x = (long) Math.pow(10, 18);

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int x[][] = new int[n][n];

		for (int i = 0; i < n; i++) {
			Arrays.fill(x[i], 0);
		}

		for (int i = 0; i < m; i++) {
			int y = sc.nextInt();
			int z = sc.nextInt();
			x[y - 1][z - 1] += 1;
			x[z - 1][y - 1] += 1;
		}

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


		sc.close();
	}

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

	private static final long x = (long) Math.pow(10, 18);

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int x[][] = new int[n][n];

		for (int i = 0; i < n; i++) {
			Arrays.fill(x[i], 0);
		}

		for (int i = 0; i < m; i++) {
			int y = sc.nextInt();
			int z = sc.nextInt();
			x[y - 1][z - 1] += 1;
			x[z - 1][y - 1] += 1;
		}

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


		sc.close();
	}

} Main private static final long x = (long) Math.pow(10, 18); x (long) Math.pow(10, 18) Math.pow Math 10 18 public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int x[][] = new int[n][n];

		for (int i = 0; i < n; i++) {
			Arrays.fill(x[i], 0);
		}

		for (int i = 0; i < m; i++) {
			int y = sc.nextInt();
			int z = sc.nextInt();
			x[y - 1][z - 1] += 1;
			x[z - 1][y - 1] += 1;
		}

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


		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int x[][] = new int[n][n];

		for (int i = 0; i < n; i++) {
			Arrays.fill(x[i], 0);
		}

		for (int i = 0; i < m; i++) {
			int y = sc.nextInt();
			int z = sc.nextInt();
			x[y - 1][z - 1] += 1;
			x[z - 1][y - 1] += 1;
		}

		for (int i = 0; i < n; i++) {
			int sum = 0;
			for (int j = 0; j < n; j++) {
				sum += x[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 x[][] = new int[n][n]; x new int[n][n] n n for (int i = 0; i < n; i++) {
			Arrays.fill(x[i], 0);
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			Arrays.fill(x[i], 0);
		} {
			Arrays.fill(x[i], 0);
		} Arrays.fill(x[i], 0) Arrays.fill Arrays x[i] x i 0 for (int i = 0; i < m; i++) {
			int y = sc.nextInt();
			int z = sc.nextInt();
			x[y - 1][z - 1] += 1;
			x[z - 1][y - 1] += 1;
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			int y = sc.nextInt();
			int z = sc.nextInt();
			x[y - 1][z - 1] += 1;
			x[z - 1][y - 1] += 1;
		} {
			int y = sc.nextInt();
			int z = sc.nextInt();
			x[y - 1][z - 1] += 1;
			x[z - 1][y - 1] += 1;
		} int y = sc.nextInt(); y sc.nextInt() sc.nextInt sc int z = sc.nextInt(); z sc.nextInt() sc.nextInt sc x[y - 1][z - 1] += 1 x[y - 1][z - 1] x[y - 1] x y - 1 y 1 z - 1 z 1 1 x[z - 1][y - 1] += 1 x[z - 1][y - 1] x[z - 1] x z - 1 z 1 y - 1 y 1 1 for (int i = 0; i < n; i++) {
			int sum = 0;
			for (int j = 0; j < n; j++) {
				sum += x[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 += x[i][j];
			}
			System.out.println(sum);
		} {
			int sum = 0;
			for (int j = 0; j < n; j++) {
				sum += x[i][j];
			}
			System.out.println(sum);
		} int sum = 0; sum 0 for (int j = 0; j < n; j++) {
				sum += x[i][j];
			} int j = 0; int j = 0; j 0 j < n j n j++ j++ j {
				sum += x[i][j];
			} {
				sum += x[i][j];
			} sum += x[i][j] sum x[i][j] x[i] x i j System.out.println(sum) System.out.println System.out System System.out sum sc.close() sc.close sc String[] args args public class Main {

	private static final long x = (long) Math.pow(10, 18);

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int x[][] = new int[n][n];

		for (int i = 0; i < n; i++) {
			Arrays.fill(x[i], 0);
		}

		for (int i = 0; i < m; i++) {
			int y = sc.nextInt();
			int z = sc.nextInt();
			x[y - 1][z - 1] += 1;
			x[z - 1][y - 1] += 1;
		}

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


		sc.close();
	}

} public class Main {

	private static final long x = (long) Math.pow(10, 18);

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int x[][] = new int[n][n];

		for (int i = 0; i < n; i++) {
			Arrays.fill(x[i], 0);
		}

		for (int i = 0; i < m; i++) {
			int y = sc.nextInt();
			int z = sc.nextInt();
			x[y - 1][z - 1] += 1;
			x[z - 1][y - 1] += 1;
		}

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


		sc.close();
	}

} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	private static final long x = (long) Math.pow(10, 18);

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int x[][] = new int[n][n];

		for (int i = 0; i < n; i++) {
			Arrays.fill(x[i], 0);
		}

		for (int i = 0; i < m; i++) {
			int y = sc.nextInt();
			int z = sc.nextInt();
			x[y - 1][z - 1] += 1;
			x[z - 1][y - 1] += 1;
		}

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


		sc.close();
	}

}
