import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int	N = sc.nextInt(),M=sc.nextInt();
		int[][] arrayM = new int[M][2];
		int[] array=new int[N];

		for(int i=0;i<M;i++) {
			arrayM[i][0] = sc.nextInt();
			arrayM[i][1] = sc.nextInt();
		}

		for(int i=0;i<M;i++) {
			array[arrayM[i][0]-1]++;
			array[arrayM[i][1]-1]++;
		}
		for(int i:array) {
			System.out.println(i);
		}
	}
	public static int sample() {
		return 1;
	}

} 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(),M=sc.nextInt();
		int[][] arrayM = new int[M][2];
		int[] array=new int[N];

		for(int i=0;i<M;i++) {
			arrayM[i][0] = sc.nextInt();
			arrayM[i][1] = sc.nextInt();
		}

		for(int i=0;i<M;i++) {
			array[arrayM[i][0]-1]++;
			array[arrayM[i][1]-1]++;
		}
		for(int i:array) {
			System.out.println(i);
		}
	}
	public static int sample() {
		return 1;
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int	N = sc.nextInt(),M=sc.nextInt();
		int[][] arrayM = new int[M][2];
		int[] array=new int[N];

		for(int i=0;i<M;i++) {
			arrayM[i][0] = sc.nextInt();
			arrayM[i][1] = sc.nextInt();
		}

		for(int i=0;i<M;i++) {
			array[arrayM[i][0]-1]++;
			array[arrayM[i][1]-1]++;
		}
		for(int i:array) {
			System.out.println(i);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int	N = sc.nextInt(),M=sc.nextInt();
		int[][] arrayM = new int[M][2];
		int[] array=new int[N];

		for(int i=0;i<M;i++) {
			arrayM[i][0] = sc.nextInt();
			arrayM[i][1] = sc.nextInt();
		}

		for(int i=0;i<M;i++) {
			array[arrayM[i][0]-1]++;
			array[arrayM[i][1]-1]++;
		}
		for(int i:array) {
			System.out.println(i);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int	N = sc.nextInt() N sc.nextInt() sc.nextInt sc M=sc.nextInt(); M sc.nextInt() sc.nextInt sc int[][] arrayM = new int[M][2]; arrayM new int[M][2] M 2 int[] array=new int[N]; array new int[N] N for(int i=0;i<M;i++) {
			arrayM[i][0] = sc.nextInt();
			arrayM[i][1] = sc.nextInt();
		} int i=0; int i=0; i 0 i<M i M i++ i++ i {
			arrayM[i][0] = sc.nextInt();
			arrayM[i][1] = sc.nextInt();
		} {
			arrayM[i][0] = sc.nextInt();
			arrayM[i][1] = sc.nextInt();
		} arrayM[i][0] = sc.nextInt() arrayM[i][0] arrayM[i] arrayM i 0 sc.nextInt() sc.nextInt sc arrayM[i][1] = sc.nextInt() arrayM[i][1] arrayM[i] arrayM i 1 sc.nextInt() sc.nextInt sc for(int i=0;i<M;i++) {
			array[arrayM[i][0]-1]++;
			array[arrayM[i][1]-1]++;
		} int i=0; int i=0; i 0 i<M i M i++ i++ i {
			array[arrayM[i][0]-1]++;
			array[arrayM[i][1]-1]++;
		} {
			array[arrayM[i][0]-1]++;
			array[arrayM[i][1]-1]++;
		} array[arrayM[i][0]-1]++ array[arrayM[i][0]-1] array arrayM[i][0]-1 arrayM[i][0] arrayM[i] arrayM i 0 1 array[arrayM[i][1]-1]++ array[arrayM[i][1]-1] array arrayM[i][1]-1 arrayM[i][1] arrayM[i] arrayM i 1 1 for(int i:array) {
			System.out.println(i);
		} int i array {
			System.out.println(i);
		} {
			System.out.println(i);
		} System.out.println(i) System.out.println System.out System System.out i String[] args args public static int sample() {
		return 1;
	} sample {
		return 1;
	} return 1; 1 public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int	N = sc.nextInt(),M=sc.nextInt();
		int[][] arrayM = new int[M][2];
		int[] array=new int[N];

		for(int i=0;i<M;i++) {
			arrayM[i][0] = sc.nextInt();
			arrayM[i][1] = sc.nextInt();
		}

		for(int i=0;i<M;i++) {
			array[arrayM[i][0]-1]++;
			array[arrayM[i][1]-1]++;
		}
		for(int i:array) {
			System.out.println(i);
		}
	}
	public static int sample() {
		return 1;
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int	N = sc.nextInt(),M=sc.nextInt();
		int[][] arrayM = new int[M][2];
		int[] array=new int[N];

		for(int i=0;i<M;i++) {
			arrayM[i][0] = sc.nextInt();
			arrayM[i][1] = sc.nextInt();
		}

		for(int i=0;i<M;i++) {
			array[arrayM[i][0]-1]++;
			array[arrayM[i][1]-1]++;
		}
		for(int i:array) {
			System.out.println(i);
		}
	}
	public static int sample() {
		return 1;
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int	N = sc.nextInt(),M=sc.nextInt();
		int[][] arrayM = new int[M][2];
		int[] array=new int[N];

		for(int i=0;i<M;i++) {
			arrayM[i][0] = sc.nextInt();
			arrayM[i][1] = sc.nextInt();
		}

		for(int i=0;i<M;i++) {
			array[arrayM[i][0]-1]++;
			array[arrayM[i][1]-1]++;
		}
		for(int i:array) {
			System.out.println(i);
		}
	}
	public static int sample() {
		return 1;
	}

}
