import java.util.Scanner;

class Main{
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int n=scan.nextInt(),m=scan.nextInt(),a,b,t[]=new int[50],i;
		for(i=0;i<m;i++) {
			a=scan.nextInt();
			b=scan.nextInt();
			t[a-1]++;
			t[b-1]++;
		}
		scan.close();
		for(i=0;i<n;i++) System.out.println(t[i]);
	}
} import java.util.Scanner; Scanner java.util class Main{
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int n=scan.nextInt(),m=scan.nextInt(),a,b,t[]=new int[50],i;
		for(i=0;i<m;i++) {
			a=scan.nextInt();
			b=scan.nextInt();
			t[a-1]++;
			t[b-1]++;
		}
		scan.close();
		for(i=0;i<n;i++) System.out.println(t[i]);
	}
} Main public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int n=scan.nextInt(),m=scan.nextInt(),a,b,t[]=new int[50],i;
		for(i=0;i<m;i++) {
			a=scan.nextInt();
			b=scan.nextInt();
			t[a-1]++;
			t[b-1]++;
		}
		scan.close();
		for(i=0;i<n;i++) System.out.println(t[i]);
	} main {
		Scanner scan=new Scanner(System.in);
		int n=scan.nextInt(),m=scan.nextInt(),a,b,t[]=new int[50],i;
		for(i=0;i<m;i++) {
			a=scan.nextInt();
			b=scan.nextInt();
			t[a-1]++;
			t[b-1]++;
		}
		scan.close();
		for(i=0;i<n;i++) System.out.println(t[i]);
	} Scanner scan=new Scanner(System.in); scan new Scanner(System.in) int n=scan.nextInt() n scan.nextInt() scan.nextInt scan m=scan.nextInt() m scan.nextInt() scan.nextInt scan a a b b t[]=new int[50] t new int[50] 50 i; i for(i=0;i<m;i++) {
			a=scan.nextInt();
			b=scan.nextInt();
			t[a-1]++;
			t[b-1]++;
		} i=0; i=0 i 0 i<m i m i++ i++ i {
			a=scan.nextInt();
			b=scan.nextInt();
			t[a-1]++;
			t[b-1]++;
		} {
			a=scan.nextInt();
			b=scan.nextInt();
			t[a-1]++;
			t[b-1]++;
		} a=scan.nextInt() a scan.nextInt() scan.nextInt scan b=scan.nextInt() b scan.nextInt() scan.nextInt scan t[a-1]++ t[a-1] t a-1 a 1 t[b-1]++ t[b-1] t b-1 b 1 scan.close() scan.close scan for(i=0;i<n;i++) System.out.println(t[i]); i=0; i=0 i 0 i<n i n i++ i++ i System.out.println(t[i]); System.out.println(t[i]) System.out.println System.out System System.out t[i] t i String[] args args
import java.util.Scanner;

class Main{
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int n=scan.nextInt(),m=scan.nextInt(),a,b,t[]=new int[50],i;
		for(i=0;i<m;i++) {
			a=scan.nextInt();
			b=scan.nextInt();
			t[a-1]++;
			t[b-1]++;
		}
		scan.close();
		for(i=0;i<n;i++) System.out.println(t[i]);
	}
}