import java.util.*;
import java.io.PrintWriter;
import static java.lang.Integer.*;
import static java.lang.Long.*;
import static java.lang.Math.*;
import static java.lang.System.*;

public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(in);
		int n = parseInt(sc.next());
		int m = parseInt(sc.next());
		int[] c = new int[n+1];
		int a;
		int b;
		for (i = 0; i < m; i++) {
			a = parseInt(sc.next());
			b = parseInt(sc.next());
			c[a]++;
			c[b]++;
		}
		sc.close();
		PrintWriter pw = new PrintWriter(out);
		for(i=1;i<=n;i++) {
			pw.println(c[i]);
		}
		pw.flush();
	}
} import java.util.*; util.* java import java.io.PrintWriter; PrintWriter java.io import static java.lang.Integer.*; import static java.lang.Integer.*; import static java.lang.Integer.*; import static java.lang.Long.*; import static java.lang.Long.*; import static java.lang.Long.*; import static java.lang.Math.*; import static java.lang.Math.*; import static java.lang.Math.*; import static java.lang.System.*; import static java.lang.System.*; import static java.lang.System.*; public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(in);
		int n = parseInt(sc.next());
		int m = parseInt(sc.next());
		int[] c = new int[n+1];
		int a;
		int b;
		for (i = 0; i < m; i++) {
			a = parseInt(sc.next());
			b = parseInt(sc.next());
			c[a]++;
			c[b]++;
		}
		sc.close();
		PrintWriter pw = new PrintWriter(out);
		for(i=1;i<=n;i++) {
			pw.println(c[i]);
		}
		pw.flush();
	}
} Main public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(in);
		int n = parseInt(sc.next());
		int m = parseInt(sc.next());
		int[] c = new int[n+1];
		int a;
		int b;
		for (i = 0; i < m; i++) {
			a = parseInt(sc.next());
			b = parseInt(sc.next());
			c[a]++;
			c[b]++;
		}
		sc.close();
		PrintWriter pw = new PrintWriter(out);
		for(i=1;i<=n;i++) {
			pw.println(c[i]);
		}
		pw.flush();
	} main {
		int i,j;
		Scanner sc = new Scanner(in);
		int n = parseInt(sc.next());
		int m = parseInt(sc.next());
		int[] c = new int[n+1];
		int a;
		int b;
		for (i = 0; i < m; i++) {
			a = parseInt(sc.next());
			b = parseInt(sc.next());
			c[a]++;
			c[b]++;
		}
		sc.close();
		PrintWriter pw = new PrintWriter(out);
		for(i=1;i<=n;i++) {
			pw.println(c[i]);
		}
		pw.flush();
	} int i i j; j Scanner sc = new Scanner(in); sc new Scanner(in) int n = parseInt(sc.next()); n parseInt(sc.next()) parseInt sc.next() sc.next sc int m = parseInt(sc.next()); m parseInt(sc.next()) parseInt sc.next() sc.next sc int[] c = new int[n+1]; c new int[n+1] n+1 n 1 int a; a int b; b for (i = 0; i < m; i++) {
			a = parseInt(sc.next());
			b = parseInt(sc.next());
			c[a]++;
			c[b]++;
		} i = 0; i = 0 i 0 i < m i m i++ i++ i {
			a = parseInt(sc.next());
			b = parseInt(sc.next());
			c[a]++;
			c[b]++;
		} {
			a = parseInt(sc.next());
			b = parseInt(sc.next());
			c[a]++;
			c[b]++;
		} a = parseInt(sc.next()) a parseInt(sc.next()) parseInt sc.next() sc.next sc b = parseInt(sc.next()) b parseInt(sc.next()) parseInt sc.next() sc.next sc c[a]++ c[a] c a c[b]++ c[b] c b sc.close() sc.close sc PrintWriter pw = new PrintWriter(out); pw new PrintWriter(out) for(i=1;i<=n;i++) {
			pw.println(c[i]);
		} i=1; i=1 i 1 i<=n i n i++ i++ i {
			pw.println(c[i]);
		} {
			pw.println(c[i]);
		} pw.println(c[i]) pw.println pw c[i] c i pw.flush() pw.flush pw String[] args args public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(in);
		int n = parseInt(sc.next());
		int m = parseInt(sc.next());
		int[] c = new int[n+1];
		int a;
		int b;
		for (i = 0; i < m; i++) {
			a = parseInt(sc.next());
			b = parseInt(sc.next());
			c[a]++;
			c[b]++;
		}
		sc.close();
		PrintWriter pw = new PrintWriter(out);
		for(i=1;i<=n;i++) {
			pw.println(c[i]);
		}
		pw.flush();
	}
} public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(in);
		int n = parseInt(sc.next());
		int m = parseInt(sc.next());
		int[] c = new int[n+1];
		int a;
		int b;
		for (i = 0; i < m; i++) {
			a = parseInt(sc.next());
			b = parseInt(sc.next());
			c[a]++;
			c[b]++;
		}
		sc.close();
		PrintWriter pw = new PrintWriter(out);
		for(i=1;i<=n;i++) {
			pw.println(c[i]);
		}
		pw.flush();
	}
} Main
import java.util.*;
import java.io.PrintWriter;
import static java.lang.Integer.*;
import static java.lang.Long.*;
import static java.lang.Math.*;
import static java.lang.System.*;

public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(in);
		int n = parseInt(sc.next());
		int m = parseInt(sc.next());
		int[] c = new int[n+1];
		int a;
		int b;
		for (i = 0; i < m; i++) {
			a = parseInt(sc.next());
			b = parseInt(sc.next());
			c[a]++;
			c[b]++;
		}
		sc.close();
		PrintWriter pw = new PrintWriter(out);
		for(i=1;i<=n;i++) {
			pw.println(c[i]);
		}
		pw.flush();
	}
}
