import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
		solve();
	}

	public static void solve() {
  		Scanner sc = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] ans = new int[n];
		Arrays.fill(ans, 0);
		for(int i = 0; i < m; i++){
			int a = sc.nextInt();
			int b = sc.nextInt();
			a--;b--;
			ans[a]++;
			ans[b]++;
		}
		
		sc.close();
		
		for(int i = 0; i < n; i++){
			out.println(ans[i]);
		}
		out.flush();
	}

	static class Pair{
		int a,b;
		public Pair(int a, int b){
			this.a = a;
			this.b = b;
		}
	}
} import java.io.PrintWriter; PrintWriter java.io import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.Collection; Collection java.util import java.util.Collections; Collections java.util import java.util.HashMap; HashMap java.util import java.util.List; List java.util import java.util.Map; Map java.util import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args) {
		solve();
	}

	public static void solve() {
  		Scanner sc = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] ans = new int[n];
		Arrays.fill(ans, 0);
		for(int i = 0; i < m; i++){
			int a = sc.nextInt();
			int b = sc.nextInt();
			a--;b--;
			ans[a]++;
			ans[b]++;
		}
		
		sc.close();
		
		for(int i = 0; i < n; i++){
			out.println(ans[i]);
		}
		out.flush();
	}

	static class Pair{
		int a,b;
		public Pair(int a, int b){
			this.a = a;
			this.b = b;
		}
	}
} Main public static void main(String[] args) {
		solve();
	} main {
		solve();
	} solve() solve String[] args args public static void solve() {
  		Scanner sc = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] ans = new int[n];
		Arrays.fill(ans, 0);
		for(int i = 0; i < m; i++){
			int a = sc.nextInt();
			int b = sc.nextInt();
			a--;b--;
			ans[a]++;
			ans[b]++;
		}
		
		sc.close();
		
		for(int i = 0; i < n; i++){
			out.println(ans[i]);
		}
		out.flush();
	} solve {
  		Scanner sc = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] ans = new int[n];
		Arrays.fill(ans, 0);
		for(int i = 0; i < m; i++){
			int a = sc.nextInt();
			int b = sc.nextInt();
			a--;b--;
			ans[a]++;
			ans[b]++;
		}
		
		sc.close();
		
		for(int i = 0; i < n; i++){
			out.println(ans[i]);
		}
		out.flush();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int m = sc.nextInt(); m sc.nextInt() sc.nextInt sc int[] ans = new int[n]; ans new int[n] n Arrays.fill(ans, 0) Arrays.fill Arrays ans 0 for(int i = 0; i < m; i++){
			int a = sc.nextInt();
			int b = sc.nextInt();
			a--;b--;
			ans[a]++;
			ans[b]++;
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			int a = sc.nextInt();
			int b = sc.nextInt();
			a--;b--;
			ans[a]++;
			ans[b]++;
		} {
			int a = sc.nextInt();
			int b = sc.nextInt();
			a--;b--;
			ans[a]++;
			ans[b]++;
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc a-- a b-- b ans[a]++ ans[a] ans a ans[b]++ ans[b] ans b sc.close() sc.close sc for(int i = 0; i < n; i++){
			out.println(ans[i]);
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			out.println(ans[i]);
		} {
			out.println(ans[i]);
		} out.println(ans[i]) out.println out ans[i] ans i out.flush() out.flush out static class Pair{
		int a,b;
		public Pair(int a, int b){
			this.a = a;
			this.b = b;
		}
	} Pair int a a b; b public Pair(int a, int b){
			this.a = a;
			this.b = b;
		} Pair {
			this.a = a;
			this.b = b;
		} this.a = a this.a this this.a a this.b = b this.b this this.b b int a a int b b public class Main{
	public static void main(String[] args) {
		solve();
	}

	public static void solve() {
  		Scanner sc = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] ans = new int[n];
		Arrays.fill(ans, 0);
		for(int i = 0; i < m; i++){
			int a = sc.nextInt();
			int b = sc.nextInt();
			a--;b--;
			ans[a]++;
			ans[b]++;
		}
		
		sc.close();
		
		for(int i = 0; i < n; i++){
			out.println(ans[i]);
		}
		out.flush();
	}

	static class Pair{
		int a,b;
		public Pair(int a, int b){
			this.a = a;
			this.b = b;
		}
	}
} public class Main{
	public static void main(String[] args) {
		solve();
	}

	public static void solve() {
  		Scanner sc = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] ans = new int[n];
		Arrays.fill(ans, 0);
		for(int i = 0; i < m; i++){
			int a = sc.nextInt();
			int b = sc.nextInt();
			a--;b--;
			ans[a]++;
			ans[b]++;
		}
		
		sc.close();
		
		for(int i = 0; i < n; i++){
			out.println(ans[i]);
		}
		out.flush();
	}

	static class Pair{
		int a,b;
		public Pair(int a, int b){
			this.a = a;
			this.b = b;
		}
	}
} Main
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
		solve();
	}

	public static void solve() {
  		Scanner sc = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] ans = new int[n];
		Arrays.fill(ans, 0);
		for(int i = 0; i < m; i++){
			int a = sc.nextInt();
			int b = sc.nextInt();
			a--;b--;
			ans[a]++;
			ans[b]++;
		}
		
		sc.close();
		
		for(int i = 0; i < n; i++){
			out.println(ans[i]);
		}
		out.flush();
	}

	static class Pair{
		int a,b;
		public Pair(int a, int b){
			this.a = a;
			this.b = b;
		}
	}
}