import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		int[] road = new int[a];

		for(int i = 0; i < a; i++) {
			road[i] = 0;
		}

		for(int i = 0; i < b; i++) {
			int c = sc.nextInt()-1;
			int d = sc.nextInt()-1;

			road[c] += 1;
			road[d] += 1;
		}

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

	}

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		int[] road = new int[a];

		for(int i = 0; i < a; i++) {
			road[i] = 0;
		}

		for(int i = 0; i < b; i++) {
			int c = sc.nextInt()-1;
			int d = sc.nextInt()-1;

			road[c] += 1;
			road[d] += 1;
		}

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

	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		int[] road = new int[a];

		for(int i = 0; i < a; i++) {
			road[i] = 0;
		}

		for(int i = 0; i < b; i++) {
			int c = sc.nextInt()-1;
			int d = sc.nextInt()-1;

			road[c] += 1;
			road[d] += 1;
		}

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

	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		int[] road = new int[a];

		for(int i = 0; i < a; i++) {
			road[i] = 0;
		}

		for(int i = 0; i < b; i++) {
			int c = sc.nextInt()-1;
			int d = sc.nextInt()-1;

			road[c] += 1;
			road[d] += 1;
		}

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

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int[] road = new int[a]; road new int[a] a for(int i = 0; i < a; i++) {
			road[i] = 0;
		} int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
			road[i] = 0;
		} {
			road[i] = 0;
		} road[i] = 0 road[i] road i 0 for(int i = 0; i < b; i++) {
			int c = sc.nextInt()-1;
			int d = sc.nextInt()-1;

			road[c] += 1;
			road[d] += 1;
		} int i = 0; int i = 0; i 0 i < b i b i++ i++ i {
			int c = sc.nextInt()-1;
			int d = sc.nextInt()-1;

			road[c] += 1;
			road[d] += 1;
		} {
			int c = sc.nextInt()-1;
			int d = sc.nextInt()-1;

			road[c] += 1;
			road[d] += 1;
		} int c = sc.nextInt()-1; c sc.nextInt()-1 sc.nextInt() sc.nextInt sc 1 int d = sc.nextInt()-1; d sc.nextInt()-1 sc.nextInt() sc.nextInt sc 1 road[c] += 1 road[c] road c 1 road[d] += 1 road[d] road d 1 for(int i = 0; i < a; i++) {
			System.out.println(road[i]);
		} int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
			System.out.println(road[i]);
		} {
			System.out.println(road[i]);
		} System.out.println(road[i]) System.out.println System.out System System.out road[i] road i String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		int[] road = new int[a];

		for(int i = 0; i < a; i++) {
			road[i] = 0;
		}

		for(int i = 0; i < b; i++) {
			int c = sc.nextInt()-1;
			int d = sc.nextInt()-1;

			road[c] += 1;
			road[d] += 1;
		}

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

	}

} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		int[] road = new int[a];

		for(int i = 0; i < a; i++) {
			road[i] = 0;
		}

		for(int i = 0; i < b; i++) {
			int c = sc.nextInt()-1;
			int d = sc.nextInt()-1;

			road[c] += 1;
			road[d] += 1;
		}

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

	}

} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		int[] road = new int[a];

		for(int i = 0; i < a; i++) {
			road[i] = 0;
		}

		for(int i = 0; i < b; i++) {
			int c = sc.nextInt()-1;
			int d = sc.nextInt()-1;

			road[c] += 1;
			road[d] += 1;
		}

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

	}

}
