import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(), m = sc.nextInt();
		int[] roads = new int[n];
		int a, b;
		for(int i = 0; i < m; i++) {
			a = sc.nextInt();
			b = sc.nextInt();
			roads[a - 1]++;
			roads[b - 1]++;
		}
		for(int j : roads) {
			System.out.println(j);
		}
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(), m = sc.nextInt();
		int[] roads = new int[n];
		int a, b;
		for(int i = 0; i < m; i++) {
			a = sc.nextInt();
			b = sc.nextInt();
			roads[a - 1]++;
			roads[b - 1]++;
		}
		for(int j : roads) {
			System.out.println(j);
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(), m = sc.nextInt();
		int[] roads = new int[n];
		int a, b;
		for(int i = 0; i < m; i++) {
			a = sc.nextInt();
			b = sc.nextInt();
			roads[a - 1]++;
			roads[b - 1]++;
		}
		for(int j : roads) {
			System.out.println(j);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(), m = sc.nextInt();
		int[] roads = new int[n];
		int a, b;
		for(int i = 0; i < m; i++) {
			a = sc.nextInt();
			b = sc.nextInt();
			roads[a - 1]++;
			roads[b - 1]++;
		}
		for(int j : roads) {
			System.out.println(j);
		}
	} 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 int[] roads = new int[n]; roads new int[n] n int a a b; b for(int i = 0; i < m; i++) {
			a = sc.nextInt();
			b = sc.nextInt();
			roads[a - 1]++;
			roads[b - 1]++;
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			a = sc.nextInt();
			b = sc.nextInt();
			roads[a - 1]++;
			roads[b - 1]++;
		} {
			a = sc.nextInt();
			b = sc.nextInt();
			roads[a - 1]++;
			roads[b - 1]++;
		} a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc roads[a - 1]++ roads[a - 1] roads a - 1 a 1 roads[b - 1]++ roads[b - 1] roads b - 1 b 1 for(int j : roads) {
			System.out.println(j);
		} int j roads {
			System.out.println(j);
		} {
			System.out.println(j);
		} System.out.println(j) System.out.println System.out System System.out j String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(), m = sc.nextInt();
		int[] roads = new int[n];
		int a, b;
		for(int i = 0; i < m; i++) {
			a = sc.nextInt();
			b = sc.nextInt();
			roads[a - 1]++;
			roads[b - 1]++;
		}
		for(int j : roads) {
			System.out.println(j);
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(), m = sc.nextInt();
		int[] roads = new int[n];
		int a, b;
		for(int i = 0; i < m; i++) {
			a = sc.nextInt();
			b = sc.nextInt();
			roads[a - 1]++;
			roads[b - 1]++;
		}
		for(int j : roads) {
			System.out.println(j);
		}
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(), m = sc.nextInt();
		int[] roads = new int[n];
		int a, b;
		for(int i = 0; i < m; i++) {
			a = sc.nextInt();
			b = sc.nextInt();
			roads[a - 1]++;
			roads[b - 1]++;
		}
		for(int j : roads) {
			System.out.println(j);
		}
	}
}