import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

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

  		int nums[] = new int[2]; 
      	
      	for(int i = 0;i < 2; i++){
        	nums[i] = sc.nextInt();
        }
      
      	int counts[] = new int[nums[0]];
        for(int i = 0; i < nums[0]; i++) counts[i] = 0;
      
      	for(int i = 0; i < nums[1]*2; i++){
          counts[sc.nextInt()-1]++;
        }
 		
      	for(int count:counts) System.out.println(count);
        
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

  		int nums[] = new int[2]; 
      	
      	for(int i = 0;i < 2; i++){
        	nums[i] = sc.nextInt();
        }
      
      	int counts[] = new int[nums[0]];
        for(int i = 0; i < nums[0]; i++) counts[i] = 0;
      
      	for(int i = 0; i < nums[1]*2; i++){
          counts[sc.nextInt()-1]++;
        }
 		
      	for(int count:counts) System.out.println(count);
        
	} main {
		Scanner sc = new Scanner(System.in);

  		int nums[] = new int[2]; 
      	
      	for(int i = 0;i < 2; i++){
        	nums[i] = sc.nextInt();
        }
      
      	int counts[] = new int[nums[0]];
        for(int i = 0; i < nums[0]; i++) counts[i] = 0;
      
      	for(int i = 0; i < nums[1]*2; i++){
          counts[sc.nextInt()-1]++;
        }
 		
      	for(int count:counts) System.out.println(count);
        
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int nums[] = new int[2]; nums new int[2] 2 for(int i = 0;i < 2; i++){
        	nums[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
        	nums[i] = sc.nextInt();
        } {
        	nums[i] = sc.nextInt();
        } nums[i] = sc.nextInt() nums[i] nums i sc.nextInt() sc.nextInt sc int counts[] = new int[nums[0]]; counts new int[nums[0]] nums[0] nums 0 for(int i = 0; i < nums[0]; i++) counts[i] = 0; int i = 0; int i = 0; i 0 i < nums[0] i nums[0] nums 0 i++ i++ i counts[i] = 0; counts[i] = 0 counts[i] counts i 0 for(int i = 0; i < nums[1]*2; i++){
          counts[sc.nextInt()-1]++;
        } int i = 0; int i = 0; i 0 i < nums[1]*2 i nums[1]*2 nums[1] nums 1 2 i++ i++ i {
          counts[sc.nextInt()-1]++;
        } {
          counts[sc.nextInt()-1]++;
        } counts[sc.nextInt()-1]++ counts[sc.nextInt()-1] counts sc.nextInt()-1 sc.nextInt() sc.nextInt sc 1 for(int count:counts) System.out.println(count); int count counts System.out.println(count); System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

  		int nums[] = new int[2]; 
      	
      	for(int i = 0;i < 2; i++){
        	nums[i] = sc.nextInt();
        }
      
      	int counts[] = new int[nums[0]];
        for(int i = 0; i < nums[0]; i++) counts[i] = 0;
      
      	for(int i = 0; i < nums[1]*2; i++){
          counts[sc.nextInt()-1]++;
        }
 		
      	for(int count:counts) System.out.println(count);
        
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

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

  		int nums[] = new int[2]; 
      	
      	for(int i = 0;i < 2; i++){
        	nums[i] = sc.nextInt();
        }
      
      	int counts[] = new int[nums[0]];
        for(int i = 0; i < nums[0]; i++) counts[i] = 0;
      
      	for(int i = 0; i < nums[1]*2; i++){
          counts[sc.nextInt()-1]++;
        }
 		
      	for(int count:counts) System.out.println(count);
        
	}
}
