import java.util.*;

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

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