import java.util.Scanner;

public class Main {

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

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

	}

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

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

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

	}

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

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

	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int[] ans = new int[n];
		for(int i = 0; i < m; i++){
			int a = scan.nextInt();
			int b = scan.nextInt();
			ans[a-1]++;
			ans[b-1]++;
		}

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

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

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

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

	}

} public class Main {

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

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

	}

} Main
import java.util.Scanner;

public class Main {

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

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

	}

}