import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		new Main().solve();
		return;
	}

	private void solve() {
		// 入力
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		int roads[] = new int[N + 1];
		for (int i = 0; i < M; i++) {
			roads[sc.nextInt()]++;
			roads[sc.nextInt()]++;
		}
		sc.close();

		// 出力
		for (int i = 1; i < roads.length; i++) {
			System.out.println(roads[i]);
		}

		return;
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		new Main().solve();
		return;
	}

	private void solve() {
		// 入力
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		int roads[] = new int[N + 1];
		for (int i = 0; i < M; i++) {
			roads[sc.nextInt()]++;
			roads[sc.nextInt()]++;
		}
		sc.close();

		// 出力
		for (int i = 1; i < roads.length; i++) {
			System.out.println(roads[i]);
		}

		return;
	}
} Main public static void main(String[] args) {
		new Main().solve();
		return;
	} main {
		new Main().solve();
		return;
	} new Main().solve() new Main().solve new Main() return; String[] args args private void solve() {
		// 入力
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		int roads[] = new int[N + 1];
		for (int i = 0; i < M; i++) {
			roads[sc.nextInt()]++;
			roads[sc.nextInt()]++;
		}
		sc.close();

		// 出力
		for (int i = 1; i < roads.length; i++) {
			System.out.println(roads[i]);
		}

		return;
	} solve {
		// 入力
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		int roads[] = new int[N + 1];
		for (int i = 0; i < M; i++) {
			roads[sc.nextInt()]++;
			roads[sc.nextInt()]++;
		}
		sc.close();

		// 出力
		for (int i = 1; i < roads.length; i++) {
			System.out.println(roads[i]);
		}

		return;
	} 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 roads[] = new int[N + 1]; roads new int[N + 1] N + 1 N 1 for (int i = 0; i < M; i++) {
			roads[sc.nextInt()]++;
			roads[sc.nextInt()]++;
		} int i = 0; int i = 0; i 0 i < M i M i++ i++ i {
			roads[sc.nextInt()]++;
			roads[sc.nextInt()]++;
		} {
			roads[sc.nextInt()]++;
			roads[sc.nextInt()]++;
		} roads[sc.nextInt()]++ roads[sc.nextInt()] roads sc.nextInt() sc.nextInt sc roads[sc.nextInt()]++ roads[sc.nextInt()] roads sc.nextInt() sc.nextInt sc sc.close() sc.close sc for (int i = 1; i < roads.length; i++) {
			System.out.println(roads[i]);
		} int i = 1; int i = 1; i 1 i < roads.length i roads.length roads roads.length i++ i++ i {
			System.out.println(roads[i]);
		} {
			System.out.println(roads[i]);
		} System.out.println(roads[i]) System.out.println System.out System System.out roads[i] roads i return; public class Main {
	public static void main(String[] args) {
		new Main().solve();
		return;
	}

	private void solve() {
		// 入力
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		int roads[] = new int[N + 1];
		for (int i = 0; i < M; i++) {
			roads[sc.nextInt()]++;
			roads[sc.nextInt()]++;
		}
		sc.close();

		// 出力
		for (int i = 1; i < roads.length; i++) {
			System.out.println(roads[i]);
		}

		return;
	}
} public class Main {
	public static void main(String[] args) {
		new Main().solve();
		return;
	}

	private void solve() {
		// 入力
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		int roads[] = new int[N + 1];
		for (int i = 0; i < M; i++) {
			roads[sc.nextInt()]++;
			roads[sc.nextInt()]++;
		}
		sc.close();

		// 出力
		for (int i = 1; i < roads.length; i++) {
			System.out.println(roads[i]);
		}

		return;
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		new Main().solve();
		return;
	}

	private void solve() {
		// 入力
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		int roads[] = new int[N + 1];
		for (int i = 0; i < M; i++) {
			roads[sc.nextInt()]++;
			roads[sc.nextInt()]++;
		}
		sc.close();

		// 出力
		for (int i = 1; i < roads.length; i++) {
			System.out.println(roads[i]);
		}

		return;
	}
}
