import java.util.Scanner;


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


public class Main {
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		
		int c[] = new int[N];
		
		for(int i =0; i<2*M ; i++){
			int a = sc.nextInt();
			c[a-1]++;
		}
		
		for(int j =0; j<N; j++){
			System.out.println(c[j]);
		}
		
		
		
		
	}
}
