import java.util.Arrays;
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[] A = new int[M];
		int[] B = new int[M];
		for (int i=0; i<M; i++) {
			A[i] = sc.nextInt();
			B[i] = sc.nextInt();
		}
		Integer[] sp = new Integer[N+1];
		Arrays.fill(sp, 0);
		for (int i=0; i<M; i++) {
			sp[A[i]] ++;
			sp[B[i]] ++;
		}
		for (int i=1; i<N+1; i++) {
			System.out.println(sp[i]);
		}
	}
} import java.util.Arrays; Arrays java.util 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[] A = new int[M];
		int[] B = new int[M];
		for (int i=0; i<M; i++) {
			A[i] = sc.nextInt();
			B[i] = sc.nextInt();
		}
		Integer[] sp = new Integer[N+1];
		Arrays.fill(sp, 0);
		for (int i=0; i<M; i++) {
			sp[A[i]] ++;
			sp[B[i]] ++;
		}
		for (int i=1; i<N+1; i++) {
			System.out.println(sp[i]);
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		int[] A = new int[M];
		int[] B = new int[M];
		for (int i=0; i<M; i++) {
			A[i] = sc.nextInt();
			B[i] = sc.nextInt();
		}
		Integer[] sp = new Integer[N+1];
		Arrays.fill(sp, 0);
		for (int i=0; i<M; i++) {
			sp[A[i]] ++;
			sp[B[i]] ++;
		}
		for (int i=1; i<N+1; i++) {
			System.out.println(sp[i]);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		int[] A = new int[M];
		int[] B = new int[M];
		for (int i=0; i<M; i++) {
			A[i] = sc.nextInt();
			B[i] = sc.nextInt();
		}
		Integer[] sp = new Integer[N+1];
		Arrays.fill(sp, 0);
		for (int i=0; i<M; i++) {
			sp[A[i]] ++;
			sp[B[i]] ++;
		}
		for (int i=1; i<N+1; i++) {
			System.out.println(sp[i]);
		}
	} 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[] A = new int[M]; A new int[M] M int[] B = new int[M]; B new int[M] M for (int i=0; i<M; i++) {
			A[i] = sc.nextInt();
			B[i] = sc.nextInt();
		} int i=0; int i=0; i 0 i<M i M i++ i++ i {
			A[i] = sc.nextInt();
			B[i] = sc.nextInt();
		} {
			A[i] = sc.nextInt();
			B[i] = sc.nextInt();
		} A[i] = sc.nextInt() A[i] A i sc.nextInt() sc.nextInt sc B[i] = sc.nextInt() B[i] B i sc.nextInt() sc.nextInt sc Integer[] sp = new Integer[N+1]; sp new Integer[N+1] N+1 N 1 Arrays.fill(sp, 0) Arrays.fill Arrays sp 0 for (int i=0; i<M; i++) {
			sp[A[i]] ++;
			sp[B[i]] ++;
		} int i=0; int i=0; i 0 i<M i M i++ i++ i {
			sp[A[i]] ++;
			sp[B[i]] ++;
		} {
			sp[A[i]] ++;
			sp[B[i]] ++;
		} sp[A[i]] ++ sp[A[i]] sp A[i] A i sp[B[i]] ++ sp[B[i]] sp B[i] B i for (int i=1; i<N+1; i++) {
			System.out.println(sp[i]);
		} int i=1; int i=1; i 1 i<N+1 i N+1 N 1 i++ i++ i {
			System.out.println(sp[i]);
		} {
			System.out.println(sp[i]);
		} System.out.println(sp[i]) System.out.println System.out System System.out sp[i] sp i 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[] A = new int[M];
		int[] B = new int[M];
		for (int i=0; i<M; i++) {
			A[i] = sc.nextInt();
			B[i] = sc.nextInt();
		}
		Integer[] sp = new Integer[N+1];
		Arrays.fill(sp, 0);
		for (int i=0; i<M; i++) {
			sp[A[i]] ++;
			sp[B[i]] ++;
		}
		for (int i=1; i<N+1; i++) {
			System.out.println(sp[i]);
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		int[] A = new int[M];
		int[] B = new int[M];
		for (int i=0; i<M; i++) {
			A[i] = sc.nextInt();
			B[i] = sc.nextInt();
		}
		Integer[] sp = new Integer[N+1];
		Arrays.fill(sp, 0);
		for (int i=0; i<M; i++) {
			sp[A[i]] ++;
			sp[B[i]] ++;
		}
		for (int i=1; i<N+1; i++) {
			System.out.println(sp[i]);
		}
	}
} Main
import java.util.Arrays;
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[] A = new int[M];
		int[] B = new int[M];
		for (int i=0; i<M; i++) {
			A[i] = sc.nextInt();
			B[i] = sc.nextInt();
		}
		Integer[] sp = new Integer[N+1];
		Arrays.fill(sp, 0);
		for (int i=0; i<M; i++) {
			sp[A[i]] ++;
			sp[B[i]] ++;
		}
		for (int i=1; i<N+1; i++) {
			System.out.println(sp[i]);
		}
	}
}
