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