import java.io.IOException;
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws IOException {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int[] count = new int[n+1];
		Arrays.fill(count, 0);

		for(int i = 0; i < m*2; i++){
			int j = scanner.nextInt();
			count[j] += 1;
		}
		for(int i = 1; i < n+1; i++){
			System.out.println(count[i]);
		}
	}
} import java.io.IOException; IOException java.io import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) throws IOException {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int[] count = new int[n+1];
		Arrays.fill(count, 0);

		for(int i = 0; i < m*2; i++){
			int j = scanner.nextInt();
			count[j] += 1;
		}
		for(int i = 1; i < n+1; i++){
			System.out.println(count[i]);
		}
	}
} Main public static void main(String[] args) throws IOException {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int[] count = new int[n+1];
		Arrays.fill(count, 0);

		for(int i = 0; i < m*2; i++){
			int j = scanner.nextInt();
			count[j] += 1;
		}
		for(int i = 1; i < n+1; i++){
			System.out.println(count[i]);
		}
	} main {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int[] count = new int[n+1];
		Arrays.fill(count, 0);

		for(int i = 0; i < m*2; i++){
			int j = scanner.nextInt();
			count[j] += 1;
		}
		for(int i = 1; i < n+1; 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 int m = scanner.nextInt(); m scanner.nextInt() scanner.nextInt scanner int[] count = new int[n+1]; count new int[n+1] n+1 n 1 Arrays.fill(count, 0) Arrays.fill Arrays count 0 for(int i = 0; i < m*2; i++){
			int j = scanner.nextInt();
			count[j] += 1;
		} int i = 0; int i = 0; i 0 i < m*2 i m*2 m 2 i++ i++ i {
			int j = scanner.nextInt();
			count[j] += 1;
		} {
			int j = scanner.nextInt();
			count[j] += 1;
		} int j = scanner.nextInt(); j scanner.nextInt() scanner.nextInt scanner count[j] += 1 count[j] count j 1 for(int i = 1; i < n+1; i++){
			System.out.println(count[i]);
		} int i = 1; int i = 1; i 1 i < n+1 i n+1 n 1 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) throws IOException {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int[] count = new int[n+1];
		Arrays.fill(count, 0);

		for(int i = 0; i < m*2; i++){
			int j = scanner.nextInt();
			count[j] += 1;
		}
		for(int i = 1; i < n+1; i++){
			System.out.println(count[i]);
		}
	}
} public class Main {

	public static void main(String[] args) throws IOException {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int[] count = new int[n+1];
		Arrays.fill(count, 0);

		for(int i = 0; i < m*2; i++){
			int j = scanner.nextInt();
			count[j] += 1;
		}
		for(int i = 1; i < n+1; i++){
			System.out.println(count[i]);
		}
	}
} Main
import java.io.IOException;
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws IOException {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int m = scanner.nextInt();
		int[] count = new int[n+1];
		Arrays.fill(count, 0);

		for(int i = 0; i < m*2; i++){
			int j = scanner.nextInt();
			count[j] += 1;
		}
		for(int i = 1; i < n+1; i++){
			System.out.println(count[i]);
		}
	}
}