import java.util.Scanner;
 
class Main {
	int n;
	int m;
	int[] ab;
	
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		Main m = new Main(sc);
		m.solve();
		sc.close();
	}
	Main(Scanner sc){
		n = sc.nextInt();
		m = sc.nextInt();
		ab = new int[2*m];
		for(int i=0;i<2*m;i+=2){
			ab[i] = sc.nextInt();
			ab[i+1] = sc.nextInt();
		}
	}
	void solve(){
		int[] c = new int[n];
		for(int i=0;i<2*m;i++){
			c[ab[i]-1]++;
		}
		for(int i:c){
			System.out.println(i);
		}
	}
} import java.util.Scanner; Scanner java.util class Main {
	int n;
	int m;
	int[] ab;
	
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		Main m = new Main(sc);
		m.solve();
		sc.close();
	}
	Main(Scanner sc){
		n = sc.nextInt();
		m = sc.nextInt();
		ab = new int[2*m];
		for(int i=0;i<2*m;i+=2){
			ab[i] = sc.nextInt();
			ab[i+1] = sc.nextInt();
		}
	}
	void solve(){
		int[] c = new int[n];
		for(int i=0;i<2*m;i++){
			c[ab[i]-1]++;
		}
		for(int i:c){
			System.out.println(i);
		}
	}
} Main int n; n int m; m int[] ab; ab public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		Main m = new Main(sc);
		m.solve();
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		Main m = new Main(sc);
		m.solve();
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Main m = new Main(sc); m new Main(sc) m.solve() m.solve m sc.close() sc.close sc String[] args args Main(Scanner sc){
		n = sc.nextInt();
		m = sc.nextInt();
		ab = new int[2*m];
		for(int i=0;i<2*m;i+=2){
			ab[i] = sc.nextInt();
			ab[i+1] = sc.nextInt();
		}
	} Main {
		n = sc.nextInt();
		m = sc.nextInt();
		ab = new int[2*m];
		for(int i=0;i<2*m;i+=2){
			ab[i] = sc.nextInt();
			ab[i+1] = sc.nextInt();
		}
	} n = sc.nextInt() n sc.nextInt() sc.nextInt sc m = sc.nextInt() m sc.nextInt() sc.nextInt sc ab = new int[2*m] ab new int[2*m] 2*m 2 m for(int i=0;i<2*m;i+=2){
			ab[i] = sc.nextInt();
			ab[i+1] = sc.nextInt();
		} int i=0; int i=0; i 0 i<2*m i 2*m 2 m i+=2 i+=2 i 2 {
			ab[i] = sc.nextInt();
			ab[i+1] = sc.nextInt();
		} {
			ab[i] = sc.nextInt();
			ab[i+1] = sc.nextInt();
		} ab[i] = sc.nextInt() ab[i] ab i sc.nextInt() sc.nextInt sc ab[i+1] = sc.nextInt() ab[i+1] ab i+1 i 1 sc.nextInt() sc.nextInt sc Scanner sc sc void solve(){
		int[] c = new int[n];
		for(int i=0;i<2*m;i++){
			c[ab[i]-1]++;
		}
		for(int i:c){
			System.out.println(i);
		}
	} solve {
		int[] c = new int[n];
		for(int i=0;i<2*m;i++){
			c[ab[i]-1]++;
		}
		for(int i:c){
			System.out.println(i);
		}
	} int[] c = new int[n]; c new int[n] n for(int i=0;i<2*m;i++){
			c[ab[i]-1]++;
		} int i=0; int i=0; i 0 i<2*m i 2*m 2 m i++ i++ i {
			c[ab[i]-1]++;
		} {
			c[ab[i]-1]++;
		} c[ab[i]-1]++ c[ab[i]-1] c ab[i]-1 ab[i] ab i 1 for(int i:c){
			System.out.println(i);
		} int i c {
			System.out.println(i);
		} {
			System.out.println(i);
		} System.out.println(i) System.out.println System.out System System.out i
import java.util.Scanner;
 
class Main {
	int n;
	int m;
	int[] ab;
	
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		Main m = new Main(sc);
		m.solve();
		sc.close();
	}
	Main(Scanner sc){
		n = sc.nextInt();
		m = sc.nextInt();
		ab = new int[2*m];
		for(int i=0;i<2*m;i+=2){
			ab[i] = sc.nextInt();
			ab[i+1] = sc.nextInt();
		}
	}
	void solve(){
		int[] c = new int[n];
		for(int i=0;i<2*m;i++){
			c[ab[i]-1]++;
		}
		for(int i:c){
			System.out.println(i);
		}
	}
}