import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		int m = scn.nextInt();

		int[] city = new int[n];

		for(int i=0;i<m;i++){
			int cityA = scn.nextInt() - 1;
			int cityB = scn.nextInt() - 1;
			city[cityA]++;
			city[cityB]++;
		}

		for(int i=0;i<city.length;i++){
			System.out.println(city[i]);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		int m = scn.nextInt();

		int[] city = new int[n];

		for(int i=0;i<m;i++){
			int cityA = scn.nextInt() - 1;
			int cityB = scn.nextInt() - 1;
			city[cityA]++;
			city[cityB]++;
		}

		for(int i=0;i<city.length;i++){
			System.out.println(city[i]);
		}
	}
} Main public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		int m = scn.nextInt();

		int[] city = new int[n];

		for(int i=0;i<m;i++){
			int cityA = scn.nextInt() - 1;
			int cityB = scn.nextInt() - 1;
			city[cityA]++;
			city[cityB]++;
		}

		for(int i=0;i<city.length;i++){
			System.out.println(city[i]);
		}
	} main {
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		int m = scn.nextInt();

		int[] city = new int[n];

		for(int i=0;i<m;i++){
			int cityA = scn.nextInt() - 1;
			int cityB = scn.nextInt() - 1;
			city[cityA]++;
			city[cityB]++;
		}

		for(int i=0;i<city.length;i++){
			System.out.println(city[i]);
		}
	} Scanner scn = new Scanner(System.in); scn new Scanner(System.in) int n = scn.nextInt(); n scn.nextInt() scn.nextInt scn int m = scn.nextInt(); m scn.nextInt() scn.nextInt scn int[] city = new int[n]; city new int[n] n for(int i=0;i<m;i++){
			int cityA = scn.nextInt() - 1;
			int cityB = scn.nextInt() - 1;
			city[cityA]++;
			city[cityB]++;
		} int i=0; int i=0; i 0 i<m i m i++ i++ i {
			int cityA = scn.nextInt() - 1;
			int cityB = scn.nextInt() - 1;
			city[cityA]++;
			city[cityB]++;
		} {
			int cityA = scn.nextInt() - 1;
			int cityB = scn.nextInt() - 1;
			city[cityA]++;
			city[cityB]++;
		} int cityA = scn.nextInt() - 1; cityA scn.nextInt() - 1 scn.nextInt() scn.nextInt scn 1 int cityB = scn.nextInt() - 1; cityB scn.nextInt() - 1 scn.nextInt() scn.nextInt scn 1 city[cityA]++ city[cityA] city cityA city[cityB]++ city[cityB] city cityB for(int i=0;i<city.length;i++){
			System.out.println(city[i]);
		} int i=0; int i=0; i 0 i<city.length i city.length city city.length 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 scn = new Scanner(System.in);
		int n = scn.nextInt();
		int m = scn.nextInt();

		int[] city = new int[n];

		for(int i=0;i<m;i++){
			int cityA = scn.nextInt() - 1;
			int cityB = scn.nextInt() - 1;
			city[cityA]++;
			city[cityB]++;
		}

		for(int i=0;i<city.length;i++){
			System.out.println(city[i]);
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		int m = scn.nextInt();

		int[] city = new int[n];

		for(int i=0;i<m;i++){
			int cityA = scn.nextInt() - 1;
			int cityB = scn.nextInt() - 1;
			city[cityA]++;
			city[cityB]++;
		}

		for(int i=0;i<city.length;i++){
			System.out.println(city[i]);
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		int m = scn.nextInt();

		int[] city = new int[n];

		for(int i=0;i<m;i++){
			int cityA = scn.nextInt() - 1;
			int cityB = scn.nextInt() - 1;
			city[cityA]++;
			city[cityB]++;
		}

		for(int i=0;i<city.length;i++){
			System.out.println(city[i]);
		}
	}
}