import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		int numberCity = 0;
		int numberPath = 0;
		Scanner sc = new Scanner(System.in);
		numberCity = sc.nextInt();
		numberPath = sc.nextInt();
		sc.nextLine();
		int[] paths = new int[numberCity];
		for (int i = 0; i < numberPath; i++) {
			int from = sc.nextInt();
			int to = sc.nextInt();
			sc.nextLine();
			paths[from - 1]++;
			paths[to - 1]++;
		}
		sc.close();

		for (int i = 0; i < paths.length; i++) {
			System.out.println(paths[i]);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		int numberCity = 0;
		int numberPath = 0;
		Scanner sc = new Scanner(System.in);
		numberCity = sc.nextInt();
		numberPath = sc.nextInt();
		sc.nextLine();
		int[] paths = new int[numberCity];
		for (int i = 0; i < numberPath; i++) {
			int from = sc.nextInt();
			int to = sc.nextInt();
			sc.nextLine();
			paths[from - 1]++;
			paths[to - 1]++;
		}
		sc.close();

		for (int i = 0; i < paths.length; i++) {
			System.out.println(paths[i]);
		}
	}
} Main public static void main(String[] args) {

		int numberCity = 0;
		int numberPath = 0;
		Scanner sc = new Scanner(System.in);
		numberCity = sc.nextInt();
		numberPath = sc.nextInt();
		sc.nextLine();
		int[] paths = new int[numberCity];
		for (int i = 0; i < numberPath; i++) {
			int from = sc.nextInt();
			int to = sc.nextInt();
			sc.nextLine();
			paths[from - 1]++;
			paths[to - 1]++;
		}
		sc.close();

		for (int i = 0; i < paths.length; i++) {
			System.out.println(paths[i]);
		}
	} main {

		int numberCity = 0;
		int numberPath = 0;
		Scanner sc = new Scanner(System.in);
		numberCity = sc.nextInt();
		numberPath = sc.nextInt();
		sc.nextLine();
		int[] paths = new int[numberCity];
		for (int i = 0; i < numberPath; i++) {
			int from = sc.nextInt();
			int to = sc.nextInt();
			sc.nextLine();
			paths[from - 1]++;
			paths[to - 1]++;
		}
		sc.close();

		for (int i = 0; i < paths.length; i++) {
			System.out.println(paths[i]);
		}
	} int numberCity = 0; numberCity 0 int numberPath = 0; numberPath 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) numberCity = sc.nextInt() numberCity sc.nextInt() sc.nextInt sc numberPath = sc.nextInt() numberPath sc.nextInt() sc.nextInt sc sc.nextLine() sc.nextLine sc int[] paths = new int[numberCity]; paths new int[numberCity] numberCity for (int i = 0; i < numberPath; i++) {
			int from = sc.nextInt();
			int to = sc.nextInt();
			sc.nextLine();
			paths[from - 1]++;
			paths[to - 1]++;
		} int i = 0; int i = 0; i 0 i < numberPath i numberPath i++ i++ i {
			int from = sc.nextInt();
			int to = sc.nextInt();
			sc.nextLine();
			paths[from - 1]++;
			paths[to - 1]++;
		} {
			int from = sc.nextInt();
			int to = sc.nextInt();
			sc.nextLine();
			paths[from - 1]++;
			paths[to - 1]++;
		} int from = sc.nextInt(); from sc.nextInt() sc.nextInt sc int to = sc.nextInt(); to sc.nextInt() sc.nextInt sc sc.nextLine() sc.nextLine sc paths[from - 1]++ paths[from - 1] paths from - 1 from 1 paths[to - 1]++ paths[to - 1] paths to - 1 to 1 sc.close() sc.close sc for (int i = 0; i < paths.length; i++) {
			System.out.println(paths[i]);
		} int i = 0; int i = 0; i 0 i < paths.length i paths.length paths paths.length i++ i++ i {
			System.out.println(paths[i]);
		} {
			System.out.println(paths[i]);
		} System.out.println(paths[i]) System.out.println System.out System System.out paths[i] paths i String[] args args public class Main {

	public static void main(String[] args) {

		int numberCity = 0;
		int numberPath = 0;
		Scanner sc = new Scanner(System.in);
		numberCity = sc.nextInt();
		numberPath = sc.nextInt();
		sc.nextLine();
		int[] paths = new int[numberCity];
		for (int i = 0; i < numberPath; i++) {
			int from = sc.nextInt();
			int to = sc.nextInt();
			sc.nextLine();
			paths[from - 1]++;
			paths[to - 1]++;
		}
		sc.close();

		for (int i = 0; i < paths.length; i++) {
			System.out.println(paths[i]);
		}
	}
} public class Main {

	public static void main(String[] args) {

		int numberCity = 0;
		int numberPath = 0;
		Scanner sc = new Scanner(System.in);
		numberCity = sc.nextInt();
		numberPath = sc.nextInt();
		sc.nextLine();
		int[] paths = new int[numberCity];
		for (int i = 0; i < numberPath; i++) {
			int from = sc.nextInt();
			int to = sc.nextInt();
			sc.nextLine();
			paths[from - 1]++;
			paths[to - 1]++;
		}
		sc.close();

		for (int i = 0; i < paths.length; i++) {
			System.out.println(paths[i]);
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		int numberCity = 0;
		int numberPath = 0;
		Scanner sc = new Scanner(System.in);
		numberCity = sc.nextInt();
		numberPath = sc.nextInt();
		sc.nextLine();
		int[] paths = new int[numberCity];
		for (int i = 0; i < numberPath; i++) {
			int from = sc.nextInt();
			int to = sc.nextInt();
			sc.nextLine();
			paths[from - 1]++;
			paths[to - 1]++;
		}
		sc.close();

		for (int i = 0; i < paths.length; i++) {
			System.out.println(paths[i]);
		}
	}
}