import java.util.Comparator;
import java.util.Scanner;

class Main{




	public static void main(String[] args) {


		Scanner sc = new Scanner(System.in);			//文字の入力
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] count = new int[n+1];
		for(int i = 0;i < 2*m;i++){
			int x = sc.nextInt();
			count[x]++;
		}
		for(int i = 1;i <= n;i++){
			System.out.println(count[i]);
		}
	}

}

class MyComparator implements Comparator {
	 
    public int compare(Object obj1, Object obj2) {
         
        int num1 = (int)obj1;
        int num2 = (int)obj2;
         
        if(num1 < num2) {
            return 1;
        } else if(num1 > num2) {
            return -1;
        } else{
            return 0;
        }
    }
}

 import java.util.Comparator; Comparator java.util import java.util.Scanner; Scanner java.util class Main{




	public static void main(String[] args) {


		Scanner sc = new Scanner(System.in);			//文字の入力
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] count = new int[n+1];
		for(int i = 0;i < 2*m;i++){
			int x = sc.nextInt();
			count[x]++;
		}
		for(int i = 1;i <= n;i++){
			System.out.println(count[i]);
		}
	}

} Main public static void main(String[] args) {


		Scanner sc = new Scanner(System.in);			//文字の入力
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] count = new int[n+1];
		for(int i = 0;i < 2*m;i++){
			int x = sc.nextInt();
			count[x]++;
		}
		for(int i = 1;i <= n;i++){
			System.out.println(count[i]);
		}
	} main {


		Scanner sc = new Scanner(System.in);			//文字の入力
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] count = new int[n+1];
		for(int i = 0;i < 2*m;i++){
			int x = sc.nextInt();
			count[x]++;
		}
		for(int i = 1;i <= n;i++){
			System.out.println(count[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[] count = new int[n+1]; count new int[n+1] n+1 n 1 for(int i = 0;i < 2*m;i++){
			int x = sc.nextInt();
			count[x]++;
		} int i = 0; int i = 0; i 0 i < 2*m i 2*m 2 m i++ i++ i {
			int x = sc.nextInt();
			count[x]++;
		} {
			int x = sc.nextInt();
			count[x]++;
		} int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc count[x]++ count[x] count x for(int i = 1;i <= n;i++){
			System.out.println(count[i]);
		} int i = 1; int i = 1; i 1 i <= n i n 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 class MyComparator implements Comparator {
	 
    public int compare(Object obj1, Object obj2) {
         
        int num1 = (int)obj1;
        int num2 = (int)obj2;
         
        if(num1 < num2) {
            return 1;
        } else if(num1 > num2) {
            return -1;
        } else{
            return 0;
        }
    }
} MyComparator public int compare(Object obj1, Object obj2) {
         
        int num1 = (int)obj1;
        int num2 = (int)obj2;
         
        if(num1 < num2) {
            return 1;
        } else if(num1 > num2) {
            return -1;
        } else{
            return 0;
        }
    } compare {
         
        int num1 = (int)obj1;
        int num2 = (int)obj2;
         
        if(num1 < num2) {
            return 1;
        } else if(num1 > num2) {
            return -1;
        } else{
            return 0;
        }
    } int num1 = (int)obj1; num1 (int)obj1 int num2 = (int)obj2; num2 (int)obj2 if(num1 < num2) {
            return 1;
        } else if(num1 > num2) {
            return -1;
        } else{
            return 0;
        } num1 < num2 num1 num2 {
            return 1;
        } return 1; 1 if(num1 > num2) {
            return -1;
        } else{
            return 0;
        } num1 > num2 num1 num2 {
            return -1;
        } return -1; -1 1 {
            return 0;
        } return 0; 0 Object obj1 obj1 Object obj2 obj2 Comparator
import java.util.Comparator;
import java.util.Scanner;

class Main{




	public static void main(String[] args) {


		Scanner sc = new Scanner(System.in);			//文字の入力
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] count = new int[n+1];
		for(int i = 0;i < 2*m;i++){
			int x = sc.nextInt();
			count[x]++;
		}
		for(int i = 1;i <= n;i++){
			System.out.println(count[i]);
		}
	}

}

class MyComparator implements Comparator {
	 
    public int compare(Object obj1, Object obj2) {
         
        int num1 = (int)obj1;
        int num2 = (int)obj2;
         
        if(num1 < num2) {
            return 1;
        } else if(num1 > num2) {
            return -1;
        } else{
            return 0;
        }
    }
}


