import java.util.*;
public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] a = new int[m + 1];
		int[] b = new int[m + 1];
		for(int i = 1; i <= m; i++) {
			a[i] = sc.nextInt();
			b[i] = sc.nextInt();
		}
		int[] cnt = new int[n + 1];
		for(int i = 1; i <= n; i++) cnt[i] = 0;
		for(int i = 1; i <= m; i++) {
			cnt[a[i]]++;
			cnt[b[i]]++;
		}
		for(int i = 1; i <= n; i++) System.out.println(cnt[i]);
	}
} import java.util.*; util.* java public class Main {

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

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] a = new int[m + 1];
		int[] b = new int[m + 1];
		for(int i = 1; i <= m; i++) {
			a[i] = sc.nextInt();
			b[i] = sc.nextInt();
		}
		int[] cnt = new int[n + 1];
		for(int i = 1; i <= n; i++) cnt[i] = 0;
		for(int i = 1; i <= m; i++) {
			cnt[a[i]]++;
			cnt[b[i]]++;
		}
		for(int i = 1; i <= n; i++) System.out.println(cnt[i]);
	}
} Main
import java.util.*;
public class Main {

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