import java.util.*;
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];
		Arrays.fill(arr, 0);
		for(int i=0; i<2*M; i++){
			int a = sc.nextInt();
			for(int j=1; j<=N; j++){
				if(a==j){
					arr[j-1]++;
				}
			}
		}
		for(int i=0; i<N; i++){
			System.out.println(arr[i]);
		}
	}
} import java.util.*; util.* 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];
		Arrays.fill(arr, 0);
		for(int i=0; i<2*M; i++){
			int a = sc.nextInt();
			for(int j=1; j<=N; j++){
				if(a==j){
					arr[j-1]++;
				}
			}
		}
		for(int i=0; i<N; 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];
		Arrays.fill(arr, 0);
		for(int i=0; i<2*M; i++){
			int a = sc.nextInt();
			for(int j=1; j<=N; j++){
				if(a==j){
					arr[j-1]++;
				}
			}
		}
		for(int i=0; i<N; 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];
		Arrays.fill(arr, 0);
		for(int i=0; i<2*M; i++){
			int a = sc.nextInt();
			for(int j=1; j<=N; j++){
				if(a==j){
					arr[j-1]++;
				}
			}
		}
		for(int i=0; i<N; 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]; arr new int[N] N Arrays.fill(arr, 0) Arrays.fill Arrays arr 0 for(int i=0; i<2*M; i++){
			int a = sc.nextInt();
			for(int j=1; j<=N; j++){
				if(a==j){
					arr[j-1]++;
				}
			}
		} int i=0; int i=0; i 0 i<2*M i 2*M 2 M i++ i++ i {
			int a = sc.nextInt();
			for(int j=1; j<=N; j++){
				if(a==j){
					arr[j-1]++;
				}
			}
		} {
			int a = sc.nextInt();
			for(int j=1; j<=N; j++){
				if(a==j){
					arr[j-1]++;
				}
			}
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc for(int j=1; j<=N; j++){
				if(a==j){
					arr[j-1]++;
				}
			} int j=1; int j=1; j 1 j<=N j N j++ j++ j {
				if(a==j){
					arr[j-1]++;
				}
			} {
				if(a==j){
					arr[j-1]++;
				}
			} if(a==j){
					arr[j-1]++;
				} a==j a j {
					arr[j-1]++;
				} arr[j-1]++ arr[j-1] arr j-1 j 1 for(int i=0; i<N; i++){
			System.out.println(arr[i]);
		} int i=0; int i=0; i 0 i<N i N 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];
		Arrays.fill(arr, 0);
		for(int i=0; i<2*M; i++){
			int a = sc.nextInt();
			for(int j=1; j<=N; j++){
				if(a==j){
					arr[j-1]++;
				}
			}
		}
		for(int i=0; i<N; 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];
		Arrays.fill(arr, 0);
		for(int i=0; i<2*M; i++){
			int a = sc.nextInt();
			for(int j=1; j<=N; j++){
				if(a==j){
					arr[j-1]++;
				}
			}
		}
		for(int i=0; i<N; i++){
			System.out.println(arr[i]);
		}
	}
} Main
import java.util.*;
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];
		Arrays.fill(arr, 0);
		for(int i=0; i<2*M; i++){
			int a = sc.nextInt();
			for(int j=1; j<=N; j++){
				if(a==j){
					arr[j-1]++;
				}
			}
		}
		for(int i=0; i<N; i++){
			System.out.println(arr[i]);
		}
	}
}