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