import java.util.Scanner;

public class Main {

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

} import java.util.Scanner; Scanner java.util public class Main {

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

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

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

} public class Main {

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

} Main
import java.util.Scanner;

public class Main {

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

}
