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[] r = new int[n];
		int[] c = new int[m*2];
		for(int i=0; i<m*2; i++){
			c[i] = sc.nextInt();
		}
		for(int i=0; i<m*2; i++){
			r[c[i]-1]++;
		}
		for(int i=0; i<n; i++){
			System.out.println(r[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[] r = new int[n];
		int[] c = new int[m*2];
		for(int i=0; i<m*2; i++){
			c[i] = sc.nextInt();
		}
		for(int i=0; i<m*2; i++){
			r[c[i]-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 = sc.nextInt();
		int m = sc.nextInt();
		int[] r = new int[n];
		int[] c = new int[m*2];
		for(int i=0; i<m*2; i++){
			c[i] = sc.nextInt();
		}
		for(int i=0; i<m*2; i++){
			r[c[i]-1]++;
		}
		for(int i=0; i<n; i++){
			System.out.println(r[i]);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] r = new int[n];
		int[] c = new int[m*2];
		for(int i=0; i<m*2; i++){
			c[i] = sc.nextInt();
		}
		for(int i=0; i<m*2; i++){
			r[c[i]-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 = sc.nextInt(); n sc.nextInt() sc.nextInt sc int m = sc.nextInt(); m sc.nextInt() sc.nextInt sc int[] r = new int[n]; r new int[n] n int[] c = new int[m*2]; c new int[m*2] m*2 m 2 for(int i=0; i<m*2; i++){
			c[i] = sc.nextInt();
		} int i=0; int i=0; i 0 i<m*2 i m*2 m 2 i++ i++ i {
			c[i] = sc.nextInt();
		} {
			c[i] = sc.nextInt();
		} c[i] = sc.nextInt() c[i] c i sc.nextInt() sc.nextInt sc for(int i=0; i<m*2; i++){
			r[c[i]-1]++;
		} int i=0; int i=0; i 0 i<m*2 i m*2 m 2 i++ i++ i {
			r[c[i]-1]++;
		} {
			r[c[i]-1]++;
		} r[c[i]-1]++ r[c[i]-1] r c[i]-1 c[i] c i 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(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 = sc.nextInt();
		int m = sc.nextInt();
		int[] r = new int[n];
		int[] c = new int[m*2];
		for(int i=0; i<m*2; i++){
			c[i] = sc.nextInt();
		}
		for(int i=0; i<m*2; i++){
			r[c[i]-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 = sc.nextInt();
		int m = sc.nextInt();
		int[] r = new int[n];
		int[] c = new int[m*2];
		for(int i=0; i<m*2; i++){
			c[i] = sc.nextInt();
		}
		for(int i=0; i<m*2; i++){
			r[c[i]-1]++;
		}
		for(int i=0; i<n; i++){
			System.out.println(r[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[] r = new int[n];
		int[] c = new int[m*2];
		for(int i=0; i<m*2; i++){
			c[i] = sc.nextInt();
		}
		for(int i=0; i<m*2; i++){
			r[c[i]-1]++;
		}
		for(int i=0; i<n; i++){
			System.out.println(r[i]);
		}
	}
}