import java.util.*;

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

public class Main {
	public static void main(String []args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] mp = new int[n+1];
		while(sc.hasNext()) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			if(a==b) mp[a]++;
			else {
				mp[a]++;
				mp[b]++;
			}
		}
		for(int i=1; i<mp.length; i++) {
			System.out.println(mp[i]);
		}
	}
}