import 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[] arr = new int[n + 1];
		for (int i = 0; i < m; i++) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			arr[a]++;
			arr[b]++;
		}
		StringBuilder sb = new StringBuilder();
		for (int i =1; i <= n; i++) {
			sb.append(arr[i]).append("\n");
		}
		System.out.print(sb);
	}
} import java.util.*; util.* java public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] arr = new int[n + 1];
		for (int i = 0; i < m; i++) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			arr[a]++;
			arr[b]++;
		}
		StringBuilder sb = new StringBuilder();
		for (int i =1; i <= n; i++) {
			sb.append(arr[i]).append("\n");
		}
		System.out.print(sb);
	}
} Main public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] arr = new int[n + 1];
		for (int i = 0; i < m; i++) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			arr[a]++;
			arr[b]++;
		}
		StringBuilder sb = new StringBuilder();
		for (int i =1; i <= n; i++) {
			sb.append(arr[i]).append("\n");
		}
		System.out.print(sb);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] arr = new int[n + 1];
		for (int i = 0; i < m; i++) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			arr[a]++;
			arr[b]++;
		}
		StringBuilder sb = new StringBuilder();
		for (int i =1; i <= n; i++) {
			sb.append(arr[i]).append("\n");
		}
		System.out.print(sb);
	} 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[] arr = new int[n + 1]; arr new int[n + 1] n + 1 n 1 for (int i = 0; i < m; i++) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			arr[a]++;
			arr[b]++;
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			int a = sc.nextInt();
			int b = sc.nextInt();
			arr[a]++;
			arr[b]++;
		} {
			int a = sc.nextInt();
			int b = sc.nextInt();
			arr[a]++;
			arr[b]++;
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc arr[a]++ arr[a] arr a arr[b]++ arr[b] arr b StringBuilder sb = new StringBuilder(); sb new StringBuilder() for (int i =1; i <= n; i++) {
			sb.append(arr[i]).append("\n");
		} int i =1; int i =1; i 1 i <= n i n i++ i++ i {
			sb.append(arr[i]).append("\n");
		} {
			sb.append(arr[i]).append("\n");
		} sb.append(arr[i]).append("\n") sb.append(arr[i]).append sb.append(arr[i]) sb.append sb arr[i] arr i "\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);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] arr = new int[n + 1];
		for (int i = 0; i < m; i++) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			arr[a]++;
			arr[b]++;
		}
		StringBuilder sb = new StringBuilder();
		for (int i =1; i <= n; i++) {
			sb.append(arr[i]).append("\n");
		}
		System.out.print(sb);
	}
} public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] arr = new int[n + 1];
		for (int i = 0; i < m; i++) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			arr[a]++;
			arr[b]++;
		}
		StringBuilder sb = new StringBuilder();
		for (int i =1; i <= n; i++) {
			sb.append(arr[i]).append("\n");
		}
		System.out.print(sb);
	}
} Main
import 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[] arr = new int[n + 1];
		for (int i = 0; i < m; i++) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			arr[a]++;
			arr[b]++;
		}
		StringBuilder sb = new StringBuilder();
		for (int i =1; i <= n; i++) {
			sb.append(arr[i]).append("\n");
		}
		System.out.print(sb);
	}
}
