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