import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int m = Integer.parseInt(sc.next());
		int[] r = new int[n];
		for (int i = 0; i < 2 * m; i++)
			r[Integer.parseInt(sc.next()) - 1]++;
		for (int i = 0; i < n; i++)
			System.out.println(r[i]);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int m = Integer.parseInt(sc.next());
		int[] r = new int[n];
		for (int i = 0; i < 2 * m; i++)
			r[Integer.parseInt(sc.next()) - 1]++;
		for (int i = 0; i < n; i++)
			System.out.println(r[i]);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int m = Integer.parseInt(sc.next());
		int[] r = new int[n];
		for (int i = 0; i < 2 * m; i++)
			r[Integer.parseInt(sc.next()) - 1]++;
		for (int i = 0; i < n; i++)
			System.out.println(r[i]);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int m = Integer.parseInt(sc.next());
		int[] r = new int[n];
		for (int i = 0; i < 2 * m; i++)
			r[Integer.parseInt(sc.next()) - 1]++;
		for (int i = 0; i < n; i++)
			System.out.println(r[i]);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int m = Integer.parseInt(sc.next()); m Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] r = new int[n]; r new int[n] n for (int i = 0; i < 2 * m; i++)
			r[Integer.parseInt(sc.next()) - 1]++; int i = 0; int i = 0; i 0 i < 2 * m i 2 * m 2 m i++ i++ i r[Integer.parseInt(sc.next()) - 1]++; r[Integer.parseInt(sc.next()) - 1]++ r[Integer.parseInt(sc.next()) - 1] r Integer.parseInt(sc.next()) - 1 Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc 1 for (int i = 0; i < n; i++)
			System.out.println(r[i]); int i = 0; int i = 0; i 0 i < n i n i++ i++ i System.out.println(r[i]); System.out.println(r[i]) System.out.println System.out System System.out r[i] r i String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int m = Integer.parseInt(sc.next());
		int[] r = new int[n];
		for (int i = 0; i < 2 * m; i++)
			r[Integer.parseInt(sc.next()) - 1]++;
		for (int i = 0; i < n; i++)
			System.out.println(r[i]);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int m = Integer.parseInt(sc.next());
		int[] r = new int[n];
		for (int i = 0; i < 2 * m; i++)
			r[Integer.parseInt(sc.next()) - 1]++;
		for (int i = 0; i < n; i++)
			System.out.println(r[i]);
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int m = Integer.parseInt(sc.next());
		int[] r = new int[n];
		for (int i = 0; i < 2 * m; i++)
			r[Integer.parseInt(sc.next()) - 1]++;
		for (int i = 0; i < n; i++)
			System.out.println(r[i]);
	}
}