import java.util.Scanner;

public class Main {

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

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

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

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int n, m, a[], b[];
		int count[];
		n = sc.nextInt();
		m = sc.nextInt();
		a = new int[m];
		b = new int[m];
		count = new int[n];
		
		for(int i = 0; i < m; ++i) {
			a[i] = sc.nextInt();
			b[i] = sc.nextInt();
			count[a[i] - 1]++;
			count[b[i] - 1]++;
		}
		
		sc.close();
		
		for(int i:count)System.out.println(i);
	} main {
		Scanner sc = new Scanner(System.in);
		
		int n, m, a[], b[];
		int count[];
		n = sc.nextInt();
		m = sc.nextInt();
		a = new int[m];
		b = new int[m];
		count = new int[n];
		
		for(int i = 0; i < m; ++i) {
			a[i] = sc.nextInt();
			b[i] = sc.nextInt();
			count[a[i] - 1]++;
			count[b[i] - 1]++;
		}
		
		sc.close();
		
		for(int i:count)System.out.println(i);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n n m m a[] a b[]; b int count[]; count n = sc.nextInt() n sc.nextInt() sc.nextInt sc m = sc.nextInt() m sc.nextInt() sc.nextInt sc a = new int[m] a new int[m] m b = new int[m] b new int[m] m count = new int[n] count new int[n] n for(int i = 0; i < m; ++i) {
			a[i] = sc.nextInt();
			b[i] = sc.nextInt();
			count[a[i] - 1]++;
			count[b[i] - 1]++;
		} int i = 0; int i = 0; i 0 i < m i m ++i ++i i {
			a[i] = sc.nextInt();
			b[i] = sc.nextInt();
			count[a[i] - 1]++;
			count[b[i] - 1]++;
		} {
			a[i] = sc.nextInt();
			b[i] = sc.nextInt();
			count[a[i] - 1]++;
			count[b[i] - 1]++;
		} 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 count[a[i] - 1]++ count[a[i] - 1] count a[i] - 1 a[i] a i 1 count[b[i] - 1]++ count[b[i] - 1] count b[i] - 1 b[i] b i 1 sc.close() sc.close sc for(int i:count)System.out.println(i); int i count System.out.println(i); System.out.println(i) System.out.println System.out System System.out i String[] args args public class Main {

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

} public class Main {

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

} Main
import java.util.Scanner;

public class Main {

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

}
