import java.util.*;
import java.io.*;

public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
	
		int[] arr = new int[n+1];
		
		for(int i=0; i<m; i++){
			int c1 = sc.nextInt();
			int c2 = sc.nextInt();
			
			arr[c1]++;
			arr[c2]++;
		}
		
		for(int i=1; i<n+1; i++){
			System.out.println(arr[i]);
		}
	}
} import java.util.*; util.* java import java.io.*; io.* 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[] arr = new int[n+1];
		
		for(int i=0; i<m; i++){
			int c1 = sc.nextInt();
			int c2 = sc.nextInt();
			
			arr[c1]++;
			arr[c2]++;
		}
		
		for(int i=1; i<n+1; i++){
			System.out.println(arr[i]);
		}
	}
} Main public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
	
		int[] arr = new int[n+1];
		
		for(int i=0; i<m; i++){
			int c1 = sc.nextInt();
			int c2 = sc.nextInt();
			
			arr[c1]++;
			arr[c2]++;
		}
		
		for(int i=1; i<n+1; i++){
			System.out.println(arr[i]);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
	
		int[] arr = new int[n+1];
		
		for(int i=0; i<m; i++){
			int c1 = sc.nextInt();
			int c2 = sc.nextInt();
			
			arr[c1]++;
			arr[c2]++;
		}
		
		for(int i=1; i<n+1; i++){
			System.out.println(arr[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[] arr = new int[n+1]; arr new int[n+1] n+1 n 1 for(int i=0; i<m; i++){
			int c1 = sc.nextInt();
			int c2 = sc.nextInt();
			
			arr[c1]++;
			arr[c2]++;
		} int i=0; int i=0; i 0 i<m i m i++ i++ i {
			int c1 = sc.nextInt();
			int c2 = sc.nextInt();
			
			arr[c1]++;
			arr[c2]++;
		} {
			int c1 = sc.nextInt();
			int c2 = sc.nextInt();
			
			arr[c1]++;
			arr[c2]++;
		} int c1 = sc.nextInt(); c1 sc.nextInt() sc.nextInt sc int c2 = sc.nextInt(); c2 sc.nextInt() sc.nextInt sc arr[c1]++ arr[c1] arr c1 arr[c2]++ arr[c2] arr c2 for(int i=1; i<n+1; i++){
			System.out.println(arr[i]);
		} int i=1; int i=1; i 1 i<n+1 i n+1 n 1 i++ i++ i {
			System.out.println(arr[i]);
		} {
			System.out.println(arr[i]);
		} System.out.println(arr[i]) System.out.println System.out System System.out arr[i] arr 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[] arr = new int[n+1];
		
		for(int i=0; i<m; i++){
			int c1 = sc.nextInt();
			int c2 = sc.nextInt();
			
			arr[c1]++;
			arr[c2]++;
		}
		
		for(int i=1; i<n+1; i++){
			System.out.println(arr[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[] arr = new int[n+1];
		
		for(int i=0; i<m; i++){
			int c1 = sc.nextInt();
			int c2 = sc.nextInt();
			
			arr[c1]++;
			arr[c2]++;
		}
		
		for(int i=1; i<n+1; i++){
			System.out.println(arr[i]);
		}
	}
} Main
import java.util.*;
import java.io.*;

public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
	
		int[] arr = new int[n+1];
		
		for(int i=0; i<m; i++){
			int c1 = sc.nextInt();
			int c2 = sc.nextInt();
			
			arr[c1]++;
			arr[c2]++;
		}
		
		for(int i=1; i<n+1; i++){
			System.out.println(arr[i]);
		}
	}
}