import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[][] map = new int[n][n];
		int a, b;
		for (int i = 0; i < m; i++) {
			a = sc.nextInt() - 1;
			b = sc.nextInt() - 1;
			map[a][b]++;
			map[b][a]++;
		}
		int cnt;
		for (int i = 0; i < n; i++) {
			cnt = 0;
			for (int j = 0; j < n; j++) {
				if (map[i][j] > 0) {
					cnt += map[i][j];
				}
			}
			sb.append(cnt + "\n");
		}
		System.out.print(sb);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[][] map = new int[n][n];
		int a, b;
		for (int i = 0; i < m; i++) {
			a = sc.nextInt() - 1;
			b = sc.nextInt() - 1;
			map[a][b]++;
			map[b][a]++;
		}
		int cnt;
		for (int i = 0; i < n; i++) {
			cnt = 0;
			for (int j = 0; j < n; j++) {
				if (map[i][j] > 0) {
					cnt += map[i][j];
				}
			}
			sb.append(cnt + "\n");
		}
		System.out.print(sb);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[][] map = new int[n][n];
		int a, b;
		for (int i = 0; i < m; i++) {
			a = sc.nextInt() - 1;
			b = sc.nextInt() - 1;
			map[a][b]++;
			map[b][a]++;
		}
		int cnt;
		for (int i = 0; i < n; i++) {
			cnt = 0;
			for (int j = 0; j < n; j++) {
				if (map[i][j] > 0) {
					cnt += map[i][j];
				}
			}
			sb.append(cnt + "\n");
		}
		System.out.print(sb);
	} main {
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[][] map = new int[n][n];
		int a, b;
		for (int i = 0; i < m; i++) {
			a = sc.nextInt() - 1;
			b = sc.nextInt() - 1;
			map[a][b]++;
			map[b][a]++;
		}
		int cnt;
		for (int i = 0; i < n; i++) {
			cnt = 0;
			for (int j = 0; j < n; j++) {
				if (map[i][j] > 0) {
					cnt += map[i][j];
				}
			}
			sb.append(cnt + "\n");
		}
		System.out.print(sb);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) StringBuilder sb = new StringBuilder(); sb new StringBuilder() int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int m = sc.nextInt(); m sc.nextInt() sc.nextInt sc int[][] map = new int[n][n]; map new int[n][n] n n int a a b; b for (int i = 0; i < m; i++) {
			a = sc.nextInt() - 1;
			b = sc.nextInt() - 1;
			map[a][b]++;
			map[b][a]++;
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			a = sc.nextInt() - 1;
			b = sc.nextInt() - 1;
			map[a][b]++;
			map[b][a]++;
		} {
			a = sc.nextInt() - 1;
			b = sc.nextInt() - 1;
			map[a][b]++;
			map[b][a]++;
		} a = sc.nextInt() - 1 a sc.nextInt() - 1 sc.nextInt() sc.nextInt sc 1 b = sc.nextInt() - 1 b sc.nextInt() - 1 sc.nextInt() sc.nextInt sc 1 map[a][b]++ map[a][b] map[a] map a b map[b][a]++ map[b][a] map[b] map b a int cnt; cnt for (int i = 0; i < n; i++) {
			cnt = 0;
			for (int j = 0; j < n; j++) {
				if (map[i][j] > 0) {
					cnt += map[i][j];
				}
			}
			sb.append(cnt + "\n");
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			cnt = 0;
			for (int j = 0; j < n; j++) {
				if (map[i][j] > 0) {
					cnt += map[i][j];
				}
			}
			sb.append(cnt + "\n");
		} {
			cnt = 0;
			for (int j = 0; j < n; j++) {
				if (map[i][j] > 0) {
					cnt += map[i][j];
				}
			}
			sb.append(cnt + "\n");
		} cnt = 0 cnt 0 for (int j = 0; j < n; j++) {
				if (map[i][j] > 0) {
					cnt += map[i][j];
				}
			} int j = 0; int j = 0; j 0 j < n j n j++ j++ j {
				if (map[i][j] > 0) {
					cnt += map[i][j];
				}
			} {
				if (map[i][j] > 0) {
					cnt += map[i][j];
				}
			} if (map[i][j] > 0) {
					cnt += map[i][j];
				} map[i][j] > 0 map[i][j] map[i] map i j 0 {
					cnt += map[i][j];
				} cnt += map[i][j] cnt map[i][j] map[i] map i j sb.append(cnt + "\n") sb.append sb cnt + "\n" cnt "\n" System.out.print(sb) System.out.print System.out System System.out sb String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[][] map = new int[n][n];
		int a, b;
		for (int i = 0; i < m; i++) {
			a = sc.nextInt() - 1;
			b = sc.nextInt() - 1;
			map[a][b]++;
			map[b][a]++;
		}
		int cnt;
		for (int i = 0; i < n; i++) {
			cnt = 0;
			for (int j = 0; j < n; j++) {
				if (map[i][j] > 0) {
					cnt += map[i][j];
				}
			}
			sb.append(cnt + "\n");
		}
		System.out.print(sb);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[][] map = new int[n][n];
		int a, b;
		for (int i = 0; i < m; i++) {
			a = sc.nextInt() - 1;
			b = sc.nextInt() - 1;
			map[a][b]++;
			map[b][a]++;
		}
		int cnt;
		for (int i = 0; i < n; i++) {
			cnt = 0;
			for (int j = 0; j < n; j++) {
				if (map[i][j] > 0) {
					cnt += map[i][j];
				}
			}
			sb.append(cnt + "\n");
		}
		System.out.print(sb);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[][] map = new int[n][n];
		int a, b;
		for (int i = 0; i < m; i++) {
			a = sc.nextInt() - 1;
			b = sc.nextInt() - 1;
			map[a][b]++;
			map[b][a]++;
		}
		int cnt;
		for (int i = 0; i < n; i++) {
			cnt = 0;
			for (int j = 0; j < n; j++) {
				if (map[i][j] > 0) {
					cnt += map[i][j];
				}
			}
			sb.append(cnt + "\n");
		}
		System.out.print(sb);
	}
}
