import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		int[][]G = new int[N][N];
		for(int i = 0; i < M; i++) {
			int a = sc.nextInt() - 1;
			int b = sc.nextInt() - 1;
			G[a][b]++;
			G[b][a]++;
		}
		sc.close();
		for(int i = 0; i < N; i++) {
			int cnt = 0;
			for(int j = 0; j < N; j++) {
				cnt += G[i][j];
			}
			System.out.println(cnt);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		int[][]G = new int[N][N];
		for(int i = 0; i < M; i++) {
			int a = sc.nextInt() - 1;
			int b = sc.nextInt() - 1;
			G[a][b]++;
			G[b][a]++;
		}
		sc.close();
		for(int i = 0; i < N; i++) {
			int cnt = 0;
			for(int j = 0; j < N; j++) {
				cnt += G[i][j];
			}
			System.out.println(cnt);
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		int[][]G = new int[N][N];
		for(int i = 0; i < M; i++) {
			int a = sc.nextInt() - 1;
			int b = sc.nextInt() - 1;
			G[a][b]++;
			G[b][a]++;
		}
		sc.close();
		for(int i = 0; i < N; i++) {
			int cnt = 0;
			for(int j = 0; j < N; j++) {
				cnt += G[i][j];
			}
			System.out.println(cnt);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		int[][]G = new int[N][N];
		for(int i = 0; i < M; i++) {
			int a = sc.nextInt() - 1;
			int b = sc.nextInt() - 1;
			G[a][b]++;
			G[b][a]++;
		}
		sc.close();
		for(int i = 0; i < N; i++) {
			int cnt = 0;
			for(int j = 0; j < N; j++) {
				cnt += G[i][j];
			}
			System.out.println(cnt);
		}
	} 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[][]G = new int[N][N]; G new int[N][N] N N for(int i = 0; i < M; i++) {
			int a = sc.nextInt() - 1;
			int b = sc.nextInt() - 1;
			G[a][b]++;
			G[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;
			G[a][b]++;
			G[b][a]++;
		} {
			int a = sc.nextInt() - 1;
			int b = sc.nextInt() - 1;
			G[a][b]++;
			G[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 G[a][b]++ G[a][b] G[a] G a b G[b][a]++ G[b][a] G[b] G b a sc.close() sc.close sc for(int i = 0; i < N; i++) {
			int cnt = 0;
			for(int j = 0; j < N; j++) {
				cnt += G[i][j];
			}
			System.out.println(cnt);
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int cnt = 0;
			for(int j = 0; j < N; j++) {
				cnt += G[i][j];
			}
			System.out.println(cnt);
		} {
			int cnt = 0;
			for(int j = 0; j < N; j++) {
				cnt += G[i][j];
			}
			System.out.println(cnt);
		} int cnt = 0; cnt 0 for(int j = 0; j < N; j++) {
				cnt += G[i][j];
			} int j = 0; int j = 0; j 0 j < N j N j++ j++ j {
				cnt += G[i][j];
			} {
				cnt += G[i][j];
			} cnt += G[i][j] cnt G[i][j] G[i] G i j System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		int[][]G = new int[N][N];
		for(int i = 0; i < M; i++) {
			int a = sc.nextInt() - 1;
			int b = sc.nextInt() - 1;
			G[a][b]++;
			G[b][a]++;
		}
		sc.close();
		for(int i = 0; i < N; i++) {
			int cnt = 0;
			for(int j = 0; j < N; j++) {
				cnt += G[i][j];
			}
			System.out.println(cnt);
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		int[][]G = new int[N][N];
		for(int i = 0; i < M; i++) {
			int a = sc.nextInt() - 1;
			int b = sc.nextInt() - 1;
			G[a][b]++;
			G[b][a]++;
		}
		sc.close();
		for(int i = 0; i < N; i++) {
			int cnt = 0;
			for(int j = 0; j < N; j++) {
				cnt += G[i][j];
			}
			System.out.println(cnt);
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		int[][]G = new int[N][N];
		for(int i = 0; i < M; i++) {
			int a = sc.nextInt() - 1;
			int b = sc.nextInt() - 1;
			G[a][b]++;
			G[b][a]++;
		}
		sc.close();
		for(int i = 0; i < N; i++) {
			int cnt = 0;
			for(int j = 0; j < N; j++) {
				cnt += G[i][j];
			}
			System.out.println(cnt);
		}
	}
}