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

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int M = Integer.parseInt(sc.next());
		ArrayList<Integer> listA = new ArrayList<>();
		ArrayList<Integer> listB = new ArrayList<>();
		int[] city = new int[N];
		for(int i = 0; i < M; i++) {
			listA.add(Integer.parseInt(sc.next()) - 1);
			listB.add(Integer.parseInt(sc.next()) - 1);
		}
		sc.close();

		Arrays.fill(city, 0);
		for(int i = 0; i < M; i++) {
			city[listA.get(i)]++;
			city[listB.get(i)]++;
		}
		for(int i = 0; i < N; i++) {
			System.out.println(city[i]);
		}
	}

} import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int M = Integer.parseInt(sc.next());
		ArrayList<Integer> listA = new ArrayList<>();
		ArrayList<Integer> listB = new ArrayList<>();
		int[] city = new int[N];
		for(int i = 0; i < M; i++) {
			listA.add(Integer.parseInt(sc.next()) - 1);
			listB.add(Integer.parseInt(sc.next()) - 1);
		}
		sc.close();

		Arrays.fill(city, 0);
		for(int i = 0; i < M; i++) {
			city[listA.get(i)]++;
			city[listB.get(i)]++;
		}
		for(int i = 0; i < N; i++) {
			System.out.println(city[i]);
		}
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int M = Integer.parseInt(sc.next());
		ArrayList<Integer> listA = new ArrayList<>();
		ArrayList<Integer> listB = new ArrayList<>();
		int[] city = new int[N];
		for(int i = 0; i < M; i++) {
			listA.add(Integer.parseInt(sc.next()) - 1);
			listB.add(Integer.parseInt(sc.next()) - 1);
		}
		sc.close();

		Arrays.fill(city, 0);
		for(int i = 0; i < M; i++) {
			city[listA.get(i)]++;
			city[listB.get(i)]++;
		}
		for(int i = 0; i < N; i++) {
			System.out.println(city[i]);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int M = Integer.parseInt(sc.next());
		ArrayList<Integer> listA = new ArrayList<>();
		ArrayList<Integer> listB = new ArrayList<>();
		int[] city = new int[N];
		for(int i = 0; i < M; i++) {
			listA.add(Integer.parseInt(sc.next()) - 1);
			listB.add(Integer.parseInt(sc.next()) - 1);
		}
		sc.close();

		Arrays.fill(city, 0);
		for(int i = 0; i < M; i++) {
			city[listA.get(i)]++;
			city[listB.get(i)]++;
		}
		for(int i = 0; i < N; i++) {
			System.out.println(city[i]);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int M = Integer.parseInt(sc.next()); M Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc ArrayList<Integer> listA = new ArrayList<>(); listA new ArrayList<>() ArrayList<Integer> listB = new ArrayList<>(); listB new ArrayList<>() int[] city = new int[N]; city new int[N] N for(int i = 0; i < M; i++) {
			listA.add(Integer.parseInt(sc.next()) - 1);
			listB.add(Integer.parseInt(sc.next()) - 1);
		} int i = 0; int i = 0; i 0 i < M i M i++ i++ i {
			listA.add(Integer.parseInt(sc.next()) - 1);
			listB.add(Integer.parseInt(sc.next()) - 1);
		} {
			listA.add(Integer.parseInt(sc.next()) - 1);
			listB.add(Integer.parseInt(sc.next()) - 1);
		} listA.add(Integer.parseInt(sc.next()) - 1) listA.add listA Integer.parseInt(sc.next()) - 1 Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc 1 listB.add(Integer.parseInt(sc.next()) - 1) listB.add listB Integer.parseInt(sc.next()) - 1 Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc 1 sc.close() sc.close sc Arrays.fill(city, 0) Arrays.fill Arrays city 0 for(int i = 0; i < M; i++) {
			city[listA.get(i)]++;
			city[listB.get(i)]++;
		} int i = 0; int i = 0; i 0 i < M i M i++ i++ i {
			city[listA.get(i)]++;
			city[listB.get(i)]++;
		} {
			city[listA.get(i)]++;
			city[listB.get(i)]++;
		} city[listA.get(i)]++ city[listA.get(i)] city listA.get(i) listA.get listA i city[listB.get(i)]++ city[listB.get(i)] city listB.get(i) listB.get listB i for(int i = 0; i < N; i++) {
			System.out.println(city[i]);
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			System.out.println(city[i]);
		} {
			System.out.println(city[i]);
		} System.out.println(city[i]) System.out.println System.out System System.out city[i] city i String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int M = Integer.parseInt(sc.next());
		ArrayList<Integer> listA = new ArrayList<>();
		ArrayList<Integer> listB = new ArrayList<>();
		int[] city = new int[N];
		for(int i = 0; i < M; i++) {
			listA.add(Integer.parseInt(sc.next()) - 1);
			listB.add(Integer.parseInt(sc.next()) - 1);
		}
		sc.close();

		Arrays.fill(city, 0);
		for(int i = 0; i < M; i++) {
			city[listA.get(i)]++;
			city[listB.get(i)]++;
		}
		for(int i = 0; i < N; i++) {
			System.out.println(city[i]);
		}
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int M = Integer.parseInt(sc.next());
		ArrayList<Integer> listA = new ArrayList<>();
		ArrayList<Integer> listB = new ArrayList<>();
		int[] city = new int[N];
		for(int i = 0; i < M; i++) {
			listA.add(Integer.parseInt(sc.next()) - 1);
			listB.add(Integer.parseInt(sc.next()) - 1);
		}
		sc.close();

		Arrays.fill(city, 0);
		for(int i = 0; i < M; i++) {
			city[listA.get(i)]++;
			city[listB.get(i)]++;
		}
		for(int i = 0; i < N; i++) {
			System.out.println(city[i]);
		}
	}

} Main
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int M = Integer.parseInt(sc.next());
		ArrayList<Integer> listA = new ArrayList<>();
		ArrayList<Integer> listB = new ArrayList<>();
		int[] city = new int[N];
		for(int i = 0; i < M; i++) {
			listA.add(Integer.parseInt(sc.next()) - 1);
			listB.add(Integer.parseInt(sc.next()) - 1);
		}
		sc.close();

		Arrays.fill(city, 0);
		for(int i = 0; i < M; i++) {
			city[listA.get(i)]++;
			city[listB.get(i)]++;
		}
		for(int i = 0; i < N; i++) {
			System.out.println(city[i]);
		}
	}

}