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[][] load = new int[M][2];
		for(int i = 0;i < M;++i) {
			load[i][0] = sc.nextInt()-1;
			load[i][1] = sc.nextInt()-1;
		}
		sc.close();
		
		int[] ans = new int[N];
		for(int i = 0;i < M;++i) {
			if(load[i][0] != load[i][1]) {
				ans[load[i][0]]++;
				ans[load[i][1]]++;
			}
		}
		
		StringBuilder sb = new StringBuilder();
		for(int i = 0;i < N;++i) {
			sb.append(ans[i]);
			sb.append("\n");
		}
		System.out.println(sb.toString());
	}
} 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[][] load = new int[M][2];
		for(int i = 0;i < M;++i) {
			load[i][0] = sc.nextInt()-1;
			load[i][1] = sc.nextInt()-1;
		}
		sc.close();
		
		int[] ans = new int[N];
		for(int i = 0;i < M;++i) {
			if(load[i][0] != load[i][1]) {
				ans[load[i][0]]++;
				ans[load[i][1]]++;
			}
		}
		
		StringBuilder sb = new StringBuilder();
		for(int i = 0;i < N;++i) {
			sb.append(ans[i]);
			sb.append("\n");
		}
		System.out.println(sb.toString());
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		int[][] load = new int[M][2];
		for(int i = 0;i < M;++i) {
			load[i][0] = sc.nextInt()-1;
			load[i][1] = sc.nextInt()-1;
		}
		sc.close();
		
		int[] ans = new int[N];
		for(int i = 0;i < M;++i) {
			if(load[i][0] != load[i][1]) {
				ans[load[i][0]]++;
				ans[load[i][1]]++;
			}
		}
		
		StringBuilder sb = new StringBuilder();
		for(int i = 0;i < N;++i) {
			sb.append(ans[i]);
			sb.append("\n");
		}
		System.out.println(sb.toString());
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		int[][] load = new int[M][2];
		for(int i = 0;i < M;++i) {
			load[i][0] = sc.nextInt()-1;
			load[i][1] = sc.nextInt()-1;
		}
		sc.close();
		
		int[] ans = new int[N];
		for(int i = 0;i < M;++i) {
			if(load[i][0] != load[i][1]) {
				ans[load[i][0]]++;
				ans[load[i][1]]++;
			}
		}
		
		StringBuilder sb = new StringBuilder();
		for(int i = 0;i < N;++i) {
			sb.append(ans[i]);
			sb.append("\n");
		}
		System.out.println(sb.toString());
	} 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[][] load = new int[M][2]; load new int[M][2] M 2 for(int i = 0;i < M;++i) {
			load[i][0] = sc.nextInt()-1;
			load[i][1] = sc.nextInt()-1;
		} int i = 0; int i = 0; i 0 i < M i M ++i ++i i {
			load[i][0] = sc.nextInt()-1;
			load[i][1] = sc.nextInt()-1;
		} {
			load[i][0] = sc.nextInt()-1;
			load[i][1] = sc.nextInt()-1;
		} load[i][0] = sc.nextInt()-1 load[i][0] load[i] load i 0 sc.nextInt()-1 sc.nextInt() sc.nextInt sc 1 load[i][1] = sc.nextInt()-1 load[i][1] load[i] load i 1 sc.nextInt()-1 sc.nextInt() sc.nextInt sc 1 sc.close() sc.close sc int[] ans = new int[N]; ans new int[N] N for(int i = 0;i < M;++i) {
			if(load[i][0] != load[i][1]) {
				ans[load[i][0]]++;
				ans[load[i][1]]++;
			}
		} int i = 0; int i = 0; i 0 i < M i M ++i ++i i {
			if(load[i][0] != load[i][1]) {
				ans[load[i][0]]++;
				ans[load[i][1]]++;
			}
		} {
			if(load[i][0] != load[i][1]) {
				ans[load[i][0]]++;
				ans[load[i][1]]++;
			}
		} if(load[i][0] != load[i][1]) {
				ans[load[i][0]]++;
				ans[load[i][1]]++;
			} load[i][0] != load[i][1] load[i][0] load[i] load i 0 load[i][1] load[i] load i 1 {
				ans[load[i][0]]++;
				ans[load[i][1]]++;
			} ans[load[i][0]]++ ans[load[i][0]] ans load[i][0] load[i] load i 0 ans[load[i][1]]++ ans[load[i][1]] ans load[i][1] load[i] load i 1 StringBuilder sb = new StringBuilder(); sb new StringBuilder() for(int i = 0;i < N;++i) {
			sb.append(ans[i]);
			sb.append("\n");
		} int i = 0; int i = 0; i 0 i < N i N ++i ++i i {
			sb.append(ans[i]);
			sb.append("\n");
		} {
			sb.append(ans[i]);
			sb.append("\n");
		} sb.append(ans[i]) sb.append sb ans[i] ans i sb.append("\n") sb.append sb "\n" System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb 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[][] load = new int[M][2];
		for(int i = 0;i < M;++i) {
			load[i][0] = sc.nextInt()-1;
			load[i][1] = sc.nextInt()-1;
		}
		sc.close();
		
		int[] ans = new int[N];
		for(int i = 0;i < M;++i) {
			if(load[i][0] != load[i][1]) {
				ans[load[i][0]]++;
				ans[load[i][1]]++;
			}
		}
		
		StringBuilder sb = new StringBuilder();
		for(int i = 0;i < N;++i) {
			sb.append(ans[i]);
			sb.append("\n");
		}
		System.out.println(sb.toString());
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		int[][] load = new int[M][2];
		for(int i = 0;i < M;++i) {
			load[i][0] = sc.nextInt()-1;
			load[i][1] = sc.nextInt()-1;
		}
		sc.close();
		
		int[] ans = new int[N];
		for(int i = 0;i < M;++i) {
			if(load[i][0] != load[i][1]) {
				ans[load[i][0]]++;
				ans[load[i][1]]++;
			}
		}
		
		StringBuilder sb = new StringBuilder();
		for(int i = 0;i < N;++i) {
			sb.append(ans[i]);
			sb.append("\n");
		}
		System.out.println(sb.toString());
	}
} 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[][] load = new int[M][2];
		for(int i = 0;i < M;++i) {
			load[i][0] = sc.nextInt()-1;
			load[i][1] = sc.nextInt()-1;
		}
		sc.close();
		
		int[] ans = new int[N];
		for(int i = 0;i < M;++i) {
			if(load[i][0] != load[i][1]) {
				ans[load[i][0]]++;
				ans[load[i][1]]++;
			}
		}
		
		StringBuilder sb = new StringBuilder();
		for(int i = 0;i < N;++i) {
			sb.append(ans[i]);
			sb.append("\n");
		}
		System.out.println(sb.toString());
	}
}
