import java.util.Arrays;
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[] a = new int[m];
		int[] b = new int[m];
		for (int i = 0; i < m; i++) {
			a[i] = scan.nextInt();
			b[i] = scan.nextInt();
		}
		int[] r = new int[n+10];
		Arrays.fill(r, 0);
		for (int i = 0; i < m; i++) {
			r[a[i]]++;
			r[b[i]]++;
		}
		for (int i = 1; i <= n; i++) {			
			System.out.println(r[i]);
		}
	}
} import java.util.Arrays; Arrays java.util 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[] a = new int[m];
		int[] b = new int[m];
		for (int i = 0; i < m; i++) {
			a[i] = scan.nextInt();
			b[i] = scan.nextInt();
		}
		int[] r = new int[n+10];
		Arrays.fill(r, 0);
		for (int i = 0; i < m; i++) {
			r[a[i]]++;
			r[b[i]]++;
		}
		for (int i = 1; i <= n; i++) {			
			System.out.println(r[i]);
		}
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int[] a = new int[m];
		int[] b = new int[m];
		for (int i = 0; i < m; i++) {
			a[i] = scan.nextInt();
			b[i] = scan.nextInt();
		}
		int[] r = new int[n+10];
		Arrays.fill(r, 0);
		for (int i = 0; i < m; i++) {
			r[a[i]]++;
			r[b[i]]++;
		}
		for (int i = 1; i <= n; i++) {			
			System.out.println(r[i]);
		}
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int[] a = new int[m];
		int[] b = new int[m];
		for (int i = 0; i < m; i++) {
			a[i] = scan.nextInt();
			b[i] = scan.nextInt();
		}
		int[] r = new int[n+10];
		Arrays.fill(r, 0);
		for (int i = 0; i < m; i++) {
			r[a[i]]++;
			r[b[i]]++;
		}
		for (int i = 1; i <= n; i++) {			
			System.out.println(r[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[] a = new int[m]; a new int[m] m int[] b = new int[m]; b new int[m] m for (int i = 0; i < m; i++) {
			a[i] = scan.nextInt();
			b[i] = scan.nextInt();
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			a[i] = scan.nextInt();
			b[i] = scan.nextInt();
		} {
			a[i] = scan.nextInt();
			b[i] = scan.nextInt();
		} a[i] = scan.nextInt() a[i] a i scan.nextInt() scan.nextInt scan b[i] = scan.nextInt() b[i] b i scan.nextInt() scan.nextInt scan int[] r = new int[n+10]; r new int[n+10] n+10 n 10 Arrays.fill(r, 0) Arrays.fill Arrays r 0 for (int i = 0; i < m; i++) {
			r[a[i]]++;
			r[b[i]]++;
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			r[a[i]]++;
			r[b[i]]++;
		} {
			r[a[i]]++;
			r[b[i]]++;
		} r[a[i]]++ r[a[i]] r a[i] a i r[b[i]]++ r[b[i]] r b[i] b i for (int i = 1; i <= n; i++) {			
			System.out.println(r[i]);
		} int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {			
			System.out.println(r[i]);
		} {			
			System.out.println(r[i]);
		} System.out.println(r[i]) System.out.println System.out System System.out r[i] r 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[] a = new int[m];
		int[] b = new int[m];
		for (int i = 0; i < m; i++) {
			a[i] = scan.nextInt();
			b[i] = scan.nextInt();
		}
		int[] r = new int[n+10];
		Arrays.fill(r, 0);
		for (int i = 0; i < m; i++) {
			r[a[i]]++;
			r[b[i]]++;
		}
		for (int i = 1; i <= n; i++) {			
			System.out.println(r[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[] a = new int[m];
		int[] b = new int[m];
		for (int i = 0; i < m; i++) {
			a[i] = scan.nextInt();
			b[i] = scan.nextInt();
		}
		int[] r = new int[n+10];
		Arrays.fill(r, 0);
		for (int i = 0; i < m; i++) {
			r[a[i]]++;
			r[b[i]]++;
		}
		for (int i = 1; i <= n; i++) {			
			System.out.println(r[i]);
		}
	}
} Main
import java.util.Arrays;
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[] a = new int[m];
		int[] b = new int[m];
		for (int i = 0; i < m; i++) {
			a[i] = scan.nextInt();
			b[i] = scan.nextInt();
		}
		int[] r = new int[n+10];
		Arrays.fill(r, 0);
		for (int i = 0; i < m; i++) {
			r[a[i]]++;
			r[b[i]]++;
		}
		for (int i = 1; i <= n; i++) {			
			System.out.println(r[i]);
		}
	}
}
