import java.util.*;
import static java.lang.Math.*;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] r = new int[n];
		for(int i = 0; i < m; i++){
		    int a = sc.nextInt()-1;
		    int b = sc.nextInt()-1;
		    r[a]++;
		    r[b]++;
		}
		
		
		// 計算
		//String result = "No";
		
		// 出力
		for(int i = 0; i < n; i++){
		    System.out.println(r[i]);
		}
		//System.out.println(result);
	}
} import java.util.*; util.* java import static java.lang.Math.*; import static java.lang.Math.*; import static java.lang.Math.*; public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] r = new int[n];
		for(int i = 0; i < m; i++){
		    int a = sc.nextInt()-1;
		    int b = sc.nextInt()-1;
		    r[a]++;
		    r[b]++;
		}
		
		
		// 計算
		//String result = "No";
		
		// 出力
		for(int i = 0; i < n; i++){
		    System.out.println(r[i]);
		}
		//System.out.println(result);
	}
} Main public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] r = new int[n];
		for(int i = 0; i < m; i++){
		    int a = sc.nextInt()-1;
		    int b = sc.nextInt()-1;
		    r[a]++;
		    r[b]++;
		}
		
		
		// 計算
		//String result = "No";
		
		// 出力
		for(int i = 0; i < n; i++){
		    System.out.println(r[i]);
		}
		//System.out.println(result);
	} main {
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] r = new int[n];
		for(int i = 0; i < m; i++){
		    int a = sc.nextInt()-1;
		    int b = sc.nextInt()-1;
		    r[a]++;
		    r[b]++;
		}
		
		
		// 計算
		//String result = "No";
		
		// 出力
		for(int i = 0; i < n; i++){
		    System.out.println(r[i]);
		}
		//System.out.println(result);
	} 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[] r = new int[n]; r new int[n] n for(int i = 0; i < m; i++){
		    int a = sc.nextInt()-1;
		    int b = sc.nextInt()-1;
		    r[a]++;
		    r[b]++;
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
		    int a = sc.nextInt()-1;
		    int b = sc.nextInt()-1;
		    r[a]++;
		    r[b]++;
		} {
		    int a = sc.nextInt()-1;
		    int b = sc.nextInt()-1;
		    r[a]++;
		    r[b]++;
		} int a = sc.nextInt()-1; a sc.nextInt()-1 sc.nextInt() sc.nextInt sc 1 int b = sc.nextInt()-1; b sc.nextInt()-1 sc.nextInt() sc.nextInt sc 1 r[a]++ r[a] r a r[b]++ r[b] r b for(int i = 0; i < n; i++){
		    System.out.println(r[i]);
		} int i = 0; int i = 0; i 0 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) throws Exception {
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] r = new int[n];
		for(int i = 0; i < m; i++){
		    int a = sc.nextInt()-1;
		    int b = sc.nextInt()-1;
		    r[a]++;
		    r[b]++;
		}
		
		
		// 計算
		//String result = "No";
		
		// 出力
		for(int i = 0; i < n; i++){
		    System.out.println(r[i]);
		}
		//System.out.println(result);
	}
} public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] r = new int[n];
		for(int i = 0; i < m; i++){
		    int a = sc.nextInt()-1;
		    int b = sc.nextInt()-1;
		    r[a]++;
		    r[b]++;
		}
		
		
		// 計算
		//String result = "No";
		
		// 出力
		for(int i = 0; i < n; i++){
		    System.out.println(r[i]);
		}
		//System.out.println(result);
	}
} Main
import java.util.*;
import static java.lang.Math.*;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] r = new int[n];
		for(int i = 0; i < m; i++){
		    int a = sc.nextInt()-1;
		    int b = sc.nextInt()-1;
		    r[a]++;
		    r[b]++;
		}
		
		
		// 計算
		//String result = "No";
		
		// 出力
		for(int i = 0; i < n; i++){
		    System.out.println(r[i]);
		}
		//System.out.println(result);
	}
}
