import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int m = in.nextInt();
		ArrayList<ArrayList<Integer>> graph = new ArrayList<ArrayList<Integer>>() {
			{
				for (int i = 0; i < n; i++) {
					add(new ArrayList<>());
				}
			}
		};
		for (int i = 0; i < m; i++) {
			int a = in.nextInt() - 1;
			int b = in.nextInt() - 1;
			graph.get(a).add(b);
			graph.get(b).add(a);
		}
		for (int i = 0; i < graph.size(); i++) {
			System.out.println(graph.get(i).size());
		}
		in.close();
	}
} ArrayList<ArrayList<Integer>>() {
			{
				for (int i = 0; i < n; i++) {
					add(new ArrayList<>());
				}
			}
		} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int m = in.nextInt();
		ArrayList<ArrayList<Integer>> graph = new ArrayList<ArrayList<Integer>>() {
			{
				for (int i = 0; i < n; i++) {
					add(new ArrayList<>());
				}
			}
		};
		for (int i = 0; i < m; i++) {
			int a = in.nextInt() - 1;
			int b = in.nextInt() - 1;
			graph.get(a).add(b);
			graph.get(b).add(a);
		}
		for (int i = 0; i < graph.size(); i++) {
			System.out.println(graph.get(i).size());
		}
		in.close();
	}
} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int m = in.nextInt();
		ArrayList<ArrayList<Integer>> graph = new ArrayList<ArrayList<Integer>>() {
			{
				for (int i = 0; i < n; i++) {
					add(new ArrayList<>());
				}
			}
		};
		for (int i = 0; i < m; i++) {
			int a = in.nextInt() - 1;
			int b = in.nextInt() - 1;
			graph.get(a).add(b);
			graph.get(b).add(a);
		}
		for (int i = 0; i < graph.size(); i++) {
			System.out.println(graph.get(i).size());
		}
		in.close();
	} main {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int m = in.nextInt();
		ArrayList<ArrayList<Integer>> graph = new ArrayList<ArrayList<Integer>>() {
			{
				for (int i = 0; i < n; i++) {
					add(new ArrayList<>());
				}
			}
		};
		for (int i = 0; i < m; i++) {
			int a = in.nextInt() - 1;
			int b = in.nextInt() - 1;
			graph.get(a).add(b);
			graph.get(b).add(a);
		}
		for (int i = 0; i < graph.size(); i++) {
			System.out.println(graph.get(i).size());
		}
		in.close();
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int n = in.nextInt(); n in.nextInt() in.nextInt in int m = in.nextInt(); m in.nextInt() in.nextInt in ArrayList<ArrayList<Integer>> graph = new ArrayList<ArrayList<Integer>>() {
			{
				for (int i = 0; i < n; i++) {
					add(new ArrayList<>());
				}
			}
		}; graph new ArrayList<ArrayList<Integer>>() {
			{
				for (int i = 0; i < n; i++) {
					add(new ArrayList<>());
				}
			}
		} for (int i = 0; i < m; i++) {
			int a = in.nextInt() - 1;
			int b = in.nextInt() - 1;
			graph.get(a).add(b);
			graph.get(b).add(a);
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			int a = in.nextInt() - 1;
			int b = in.nextInt() - 1;
			graph.get(a).add(b);
			graph.get(b).add(a);
		} {
			int a = in.nextInt() - 1;
			int b = in.nextInt() - 1;
			graph.get(a).add(b);
			graph.get(b).add(a);
		} int a = in.nextInt() - 1; a in.nextInt() - 1 in.nextInt() in.nextInt in 1 int b = in.nextInt() - 1; b in.nextInt() - 1 in.nextInt() in.nextInt in 1 graph.get(a).add(b) graph.get(a).add graph.get(a) graph.get graph a b graph.get(b).add(a) graph.get(b).add graph.get(b) graph.get graph b a for (int i = 0; i < graph.size(); i++) {
			System.out.println(graph.get(i).size());
		} int i = 0; int i = 0; i 0 i < graph.size() i graph.size() graph.size graph i++ i++ i {
			System.out.println(graph.get(i).size());
		} {
			System.out.println(graph.get(i).size());
		} System.out.println(graph.get(i).size()) System.out.println System.out System System.out graph.get(i).size() graph.get(i).size graph.get(i) graph.get graph i in.close() in.close in String[] args args public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int m = in.nextInt();
		ArrayList<ArrayList<Integer>> graph = new ArrayList<ArrayList<Integer>>() {
			{
				for (int i = 0; i < n; i++) {
					add(new ArrayList<>());
				}
			}
		};
		for (int i = 0; i < m; i++) {
			int a = in.nextInt() - 1;
			int b = in.nextInt() - 1;
			graph.get(a).add(b);
			graph.get(b).add(a);
		}
		for (int i = 0; i < graph.size(); i++) {
			System.out.println(graph.get(i).size());
		}
		in.close();
	}
} public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int m = in.nextInt();
		ArrayList<ArrayList<Integer>> graph = new ArrayList<ArrayList<Integer>>() {
			{
				for (int i = 0; i < n; i++) {
					add(new ArrayList<>());
				}
			}
		};
		for (int i = 0; i < m; i++) {
			int a = in.nextInt() - 1;
			int b = in.nextInt() - 1;
			graph.get(a).add(b);
			graph.get(b).add(a);
		}
		for (int i = 0; i < graph.size(); i++) {
			System.out.println(graph.get(i).size());
		}
		in.close();
	}
} Main
import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int m = in.nextInt();
		ArrayList<ArrayList<Integer>> graph = new ArrayList<ArrayList<Integer>>() {
			{
				for (int i = 0; i < n; i++) {
					add(new ArrayList<>());
				}
			}
		};
		for (int i = 0; i < m; i++) {
			int a = in.nextInt() - 1;
			int b = in.nextInt() - 1;
			graph.get(a).add(b);
			graph.get(b).add(a);
		}
		for (int i = 0; i < graph.size(); i++) {
			System.out.println(graph.get(i).size());
		}
		in.close();
	}
}