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[] counts = new int[n];
		
		for(int i = 0; i<counts.length; i++) {
			counts[i] =0;
		}
		
		for(int i = 0; i<m; i++) {
			counts[sc.nextInt()-1]++;
			counts[sc.nextInt()-1]++;
		}
		
		for(int count:counts) {
			System.out.println(count);
		}
		
		sc.close();

	}

} 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[] counts = new int[n];
		
		for(int i = 0; i<counts.length; i++) {
			counts[i] =0;
		}
		
		for(int i = 0; i<m; i++) {
			counts[sc.nextInt()-1]++;
			counts[sc.nextInt()-1]++;
		}
		
		for(int count:counts) {
			System.out.println(count);
		}
		
		sc.close();

	}

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

	} main {
		Scanner sc = new Scanner(System.in);
		
		int n = sc.nextInt();
		int m = sc.nextInt();
		
		int[] counts = new int[n];
		
		for(int i = 0; i<counts.length; i++) {
			counts[i] =0;
		}
		
		for(int i = 0; i<m; i++) {
			counts[sc.nextInt()-1]++;
			counts[sc.nextInt()-1]++;
		}
		
		for(int count:counts) {
			System.out.println(count);
		}
		
		sc.close();

	} 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[] counts = new int[n]; counts new int[n] n for(int i = 0; i<counts.length; i++) {
			counts[i] =0;
		} int i = 0; int i = 0; i 0 i<counts.length i counts.length counts counts.length i++ i++ i {
			counts[i] =0;
		} {
			counts[i] =0;
		} counts[i] =0 counts[i] counts i 0 for(int i = 0; i<m; i++) {
			counts[sc.nextInt()-1]++;
			counts[sc.nextInt()-1]++;
		} int i = 0; int i = 0; i 0 i<m i m i++ i++ i {
			counts[sc.nextInt()-1]++;
			counts[sc.nextInt()-1]++;
		} {
			counts[sc.nextInt()-1]++;
			counts[sc.nextInt()-1]++;
		} counts[sc.nextInt()-1]++ counts[sc.nextInt()-1] counts sc.nextInt()-1 sc.nextInt() sc.nextInt sc 1 counts[sc.nextInt()-1]++ counts[sc.nextInt()-1] counts sc.nextInt()-1 sc.nextInt() sc.nextInt sc 1 for(int count:counts) {
			System.out.println(count);
		} int count counts {
			System.out.println(count);
		} {
			System.out.println(count);
		} System.out.println(count) System.out.println System.out System System.out count sc.close() sc.close sc 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[] counts = new int[n];
		
		for(int i = 0; i<counts.length; i++) {
			counts[i] =0;
		}
		
		for(int i = 0; i<m; i++) {
			counts[sc.nextInt()-1]++;
			counts[sc.nextInt()-1]++;
		}
		
		for(int count:counts) {
			System.out.println(count);
		}
		
		sc.close();

	}

} public class Main {

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

	}

} 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[] counts = new int[n];
		
		for(int i = 0; i<counts.length; i++) {
			counts[i] =0;
		}
		
		for(int i = 0; i<m; i++) {
			counts[sc.nextInt()-1]++;
			counts[sc.nextInt()-1]++;
		}
		
		for(int count:counts) {
			System.out.println(count);
		}
		
		sc.close();

	}

}
