
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner io = new Scanner(System.in);
		int N = io.nextInt();
		int M = io.nextInt();
		int[] town = new int[N+1];
		
		for(int i=0;i<M;i++){
			town[io.nextInt()] ++;
			town[io.nextInt()] ++;
		}
		
		for(int i=1;i<=N;i++){
			System.out.println(town[i]);
		}
		
	}
		
}	 import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner io = new Scanner(System.in);
		int N = io.nextInt();
		int M = io.nextInt();
		int[] town = new int[N+1];
		
		for(int i=0;i<M;i++){
			town[io.nextInt()] ++;
			town[io.nextInt()] ++;
		}
		
		for(int i=1;i<=N;i++){
			System.out.println(town[i]);
		}
		
	}
		
} Main public static void main(String[] args) {
		Scanner io = new Scanner(System.in);
		int N = io.nextInt();
		int M = io.nextInt();
		int[] town = new int[N+1];
		
		for(int i=0;i<M;i++){
			town[io.nextInt()] ++;
			town[io.nextInt()] ++;
		}
		
		for(int i=1;i<=N;i++){
			System.out.println(town[i]);
		}
		
	} main {
		Scanner io = new Scanner(System.in);
		int N = io.nextInt();
		int M = io.nextInt();
		int[] town = new int[N+1];
		
		for(int i=0;i<M;i++){
			town[io.nextInt()] ++;
			town[io.nextInt()] ++;
		}
		
		for(int i=1;i<=N;i++){
			System.out.println(town[i]);
		}
		
	} Scanner io = new Scanner(System.in); io new Scanner(System.in) int N = io.nextInt(); N io.nextInt() io.nextInt io int M = io.nextInt(); M io.nextInt() io.nextInt io int[] town = new int[N+1]; town new int[N+1] N+1 N 1 for(int i=0;i<M;i++){
			town[io.nextInt()] ++;
			town[io.nextInt()] ++;
		} int i=0; int i=0; i 0 i<M i M i++ i++ i {
			town[io.nextInt()] ++;
			town[io.nextInt()] ++;
		} {
			town[io.nextInt()] ++;
			town[io.nextInt()] ++;
		} town[io.nextInt()] ++ town[io.nextInt()] town io.nextInt() io.nextInt io town[io.nextInt()] ++ town[io.nextInt()] town io.nextInt() io.nextInt io for(int i=1;i<=N;i++){
			System.out.println(town[i]);
		} int i=1; int i=1; i 1 i<=N i N i++ i++ i {
			System.out.println(town[i]);
		} {
			System.out.println(town[i]);
		} System.out.println(town[i]) System.out.println System.out System System.out town[i] town i String[] args args public class Main {
	public static void main(String[] args) {
		Scanner io = new Scanner(System.in);
		int N = io.nextInt();
		int M = io.nextInt();
		int[] town = new int[N+1];
		
		for(int i=0;i<M;i++){
			town[io.nextInt()] ++;
			town[io.nextInt()] ++;
		}
		
		for(int i=1;i<=N;i++){
			System.out.println(town[i]);
		}
		
	}
		
} public class Main {
	public static void main(String[] args) {
		Scanner io = new Scanner(System.in);
		int N = io.nextInt();
		int M = io.nextInt();
		int[] town = new int[N+1];
		
		for(int i=0;i<M;i++){
			town[io.nextInt()] ++;
			town[io.nextInt()] ++;
		}
		
		for(int i=1;i<=N;i++){
			System.out.println(town[i]);
		}
		
	}
		
} Main

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner io = new Scanner(System.in);
		int N = io.nextInt();
		int M = io.nextInt();
		int[] town = new int[N+1];
		
		for(int i=0;i<M;i++){
			town[io.nextInt()] ++;
			town[io.nextInt()] ++;
		}
		
		for(int i=1;i<=N;i++){
			System.out.println(town[i]);
		}
		
	}
		
}	