import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();

		int[] t = new int[n];
		for (int i = 0; i < m; i++) {
			t[scan.nextInt() - 1]++;
			t[scan.nextInt() - 1]++;
		}
		for (int ans : t) {
			System.out.println(ans);
		}
	}

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();

		int[] t = new int[n];
		for (int i = 0; i < m; i++) {
			t[scan.nextInt() - 1]++;
			t[scan.nextInt() - 1]++;
		}
		for (int ans : t) {
			System.out.println(ans);
		}
	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();

		int[] t = new int[n];
		for (int i = 0; i < m; i++) {
			t[scan.nextInt() - 1]++;
			t[scan.nextInt() - 1]++;
		}
		for (int ans : t) {
			System.out.println(ans);
		}
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();

		int[] t = new int[n];
		for (int i = 0; i < m; i++) {
			t[scan.nextInt() - 1]++;
			t[scan.nextInt() - 1]++;
		}
		for (int ans : t) {
			System.out.println(ans);
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int m = scan.nextInt(); m scan.nextInt() scan.nextInt scan int[] t = new int[n]; t new int[n] n for (int i = 0; i < m; i++) {
			t[scan.nextInt() - 1]++;
			t[scan.nextInt() - 1]++;
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			t[scan.nextInt() - 1]++;
			t[scan.nextInt() - 1]++;
		} {
			t[scan.nextInt() - 1]++;
			t[scan.nextInt() - 1]++;
		} t[scan.nextInt() - 1]++ t[scan.nextInt() - 1] t scan.nextInt() - 1 scan.nextInt() scan.nextInt scan 1 t[scan.nextInt() - 1]++ t[scan.nextInt() - 1] t scan.nextInt() - 1 scan.nextInt() scan.nextInt scan 1 for (int ans : t) {
			System.out.println(ans);
		} int ans t {
			System.out.println(ans);
		} {
			System.out.println(ans);
		} System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();

		int[] t = new int[n];
		for (int i = 0; i < m; i++) {
			t[scan.nextInt() - 1]++;
			t[scan.nextInt() - 1]++;
		}
		for (int ans : t) {
			System.out.println(ans);
		}
	}

} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();

		int[] t = new int[n];
		for (int i = 0; i < m; i++) {
			t[scan.nextInt() - 1]++;
			t[scan.nextInt() - 1]++;
		}
		for (int ans : t) {
			System.out.println(ans);
		}
	}

} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();

		int[] t = new int[n];
		for (int i = 0; i < m; i++) {
			t[scan.nextInt() - 1]++;
			t[scan.nextInt() - 1]++;
		}
		for (int ans : t) {
			System.out.println(ans);
		}
	}

}