import java.util.Scanner;
public class Main {
public static void main(String[]srgs) {
	Scanner scan=new Scanner(System.in);
	int a=scan.nextInt();
	int b=scan.nextInt();
	int an[]=new int[a];
	for(int i=0;i!=b;i++) {
		int c=scan.nextInt();
		int d=scan.nextInt();
		an[c-1]++;
		an[d-1]++;
	}
	for(int i=0;i!=a;i++) {
		System.out.println(an[i]);
	}
}
} import java.util.Scanner; Scanner java.util public class Main {
public static void main(String[]srgs) {
	Scanner scan=new Scanner(System.in);
	int a=scan.nextInt();
	int b=scan.nextInt();
	int an[]=new int[a];
	for(int i=0;i!=b;i++) {
		int c=scan.nextInt();
		int d=scan.nextInt();
		an[c-1]++;
		an[d-1]++;
	}
	for(int i=0;i!=a;i++) {
		System.out.println(an[i]);
	}
}
} Main public static void main(String[]srgs) {
	Scanner scan=new Scanner(System.in);
	int a=scan.nextInt();
	int b=scan.nextInt();
	int an[]=new int[a];
	for(int i=0;i!=b;i++) {
		int c=scan.nextInt();
		int d=scan.nextInt();
		an[c-1]++;
		an[d-1]++;
	}
	for(int i=0;i!=a;i++) {
		System.out.println(an[i]);
	}
} main {
	Scanner scan=new Scanner(System.in);
	int a=scan.nextInt();
	int b=scan.nextInt();
	int an[]=new int[a];
	for(int i=0;i!=b;i++) {
		int c=scan.nextInt();
		int d=scan.nextInt();
		an[c-1]++;
		an[d-1]++;
	}
	for(int i=0;i!=a;i++) {
		System.out.println(an[i]);
	}
} Scanner scan=new Scanner(System.in); scan new Scanner(System.in) int a=scan.nextInt(); a scan.nextInt() scan.nextInt scan int b=scan.nextInt(); b scan.nextInt() scan.nextInt scan int an[]=new int[a]; an new int[a] a for(int i=0;i!=b;i++) {
		int c=scan.nextInt();
		int d=scan.nextInt();
		an[c-1]++;
		an[d-1]++;
	} int i=0; int i=0; i 0 i!=b i b i++ i++ i {
		int c=scan.nextInt();
		int d=scan.nextInt();
		an[c-1]++;
		an[d-1]++;
	} {
		int c=scan.nextInt();
		int d=scan.nextInt();
		an[c-1]++;
		an[d-1]++;
	} int c=scan.nextInt(); c scan.nextInt() scan.nextInt scan int d=scan.nextInt(); d scan.nextInt() scan.nextInt scan an[c-1]++ an[c-1] an c-1 c 1 an[d-1]++ an[d-1] an d-1 d 1 for(int i=0;i!=a;i++) {
		System.out.println(an[i]);
	} int i=0; int i=0; i 0 i!=a i a i++ i++ i {
		System.out.println(an[i]);
	} {
		System.out.println(an[i]);
	} System.out.println(an[i]) System.out.println System.out System System.out an[i] an i String[]srgs srgs public class Main {
public static void main(String[]srgs) {
	Scanner scan=new Scanner(System.in);
	int a=scan.nextInt();
	int b=scan.nextInt();
	int an[]=new int[a];
	for(int i=0;i!=b;i++) {
		int c=scan.nextInt();
		int d=scan.nextInt();
		an[c-1]++;
		an[d-1]++;
	}
	for(int i=0;i!=a;i++) {
		System.out.println(an[i]);
	}
}
} public class Main {
public static void main(String[]srgs) {
	Scanner scan=new Scanner(System.in);
	int a=scan.nextInt();
	int b=scan.nextInt();
	int an[]=new int[a];
	for(int i=0;i!=b;i++) {
		int c=scan.nextInt();
		int d=scan.nextInt();
		an[c-1]++;
		an[d-1]++;
	}
	for(int i=0;i!=a;i++) {
		System.out.println(an[i]);
	}
}
} Main
import java.util.Scanner;
public class Main {
public static void main(String[]srgs) {
	Scanner scan=new Scanner(System.in);
	int a=scan.nextInt();
	int b=scan.nextInt();
	int an[]=new int[a];
	for(int i=0;i!=b;i++) {
		int c=scan.nextInt();
		int d=scan.nextInt();
		an[c-1]++;
		an[d-1]++;
	}
	for(int i=0;i!=a;i++) {
		System.out.println(an[i]);
	}
}
}