import java.util.*;
// warm-up
public class Main {

	static void solve() {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt(), M = sc.nextInt(), i=1;
		int[] r = new int[51];
		while (M-->0) {
			r[sc.nextInt()]++; r[sc.nextInt()]++;
		}
		while (i<=N) System.out.println(r[i++]);
		sc.close();		
	}

	public static void main(String args[]) {
		solve();
	}

} import java.util.*; util.* java public class Main {

	static void solve() {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt(), M = sc.nextInt(), i=1;
		int[] r = new int[51];
		while (M-->0) {
			r[sc.nextInt()]++; r[sc.nextInt()]++;
		}
		while (i<=N) System.out.println(r[i++]);
		sc.close();		
	}

	public static void main(String args[]) {
		solve();
	}

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

	static void solve() {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt(), M = sc.nextInt(), i=1;
		int[] r = new int[51];
		while (M-->0) {
			r[sc.nextInt()]++; r[sc.nextInt()]++;
		}
		while (i<=N) System.out.println(r[i++]);
		sc.close();		
	}

	public static void main(String args[]) {
		solve();
	}

} public class Main {

	static void solve() {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt(), M = sc.nextInt(), i=1;
		int[] r = new int[51];
		while (M-->0) {
			r[sc.nextInt()]++; r[sc.nextInt()]++;
		}
		while (i<=N) System.out.println(r[i++]);
		sc.close();		
	}

	public static void main(String args[]) {
		solve();
	}

} Main
import java.util.*;
// warm-up
public class Main {

	static void solve() {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt(), M = sc.nextInt(), i=1;
		int[] r = new int[51];
		while (M-->0) {
			r[sc.nextInt()]++; r[sc.nextInt()]++;
		}
		while (i<=N) System.out.println(r[i++]);
		sc.close();		
	}

	public static void main(String args[]) {
		solve();
	}

}