import java.util.Scanner;

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

public class Main {
 
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(), m = sc.nextInt();
		int c[] = new int[n];
		for(int i = 0; i < n; i++)
			c[i] = 0;
		
		for(int i = 0; i < m * 2; i++){
			int temp = sc.nextInt();
			for(int j = 0; j < n; j++)
				if(j + 1 == temp){
					c[j]++;
					break;
				}
		}
		
		for(int i = 0; i < n; i++)
			System.out.println(c[i]);
	}
 
}