
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int m = s.nextInt();
		int i = 0;
		int j = 0;
		int count = 0;


		int ary1[] = new int[2 * m];
		for (i = 0; i < 2 * m; i++) {
			ary1[i] = s.nextInt();


		}

		int ary[] = new int[n];

		for (i = 0; i < n; i++) {
			count = 0;
			for (j = 0; j < 2 * m; j++) {

				if (ary1[j] == i + 1) {
					count++;


				}
			}
			ary[i] = count;
			System.out.println(ary[i]);

		}

	}

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

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int m = s.nextInt();
		int i = 0;
		int j = 0;
		int count = 0;


		int ary1[] = new int[2 * m];
		for (i = 0; i < 2 * m; i++) {
			ary1[i] = s.nextInt();


		}

		int ary[] = new int[n];

		for (i = 0; i < n; i++) {
			count = 0;
			for (j = 0; j < 2 * m; j++) {

				if (ary1[j] == i + 1) {
					count++;


				}
			}
			ary[i] = count;
			System.out.println(ary[i]);

		}

	}

} Main public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int m = s.nextInt();
		int i = 0;
		int j = 0;
		int count = 0;


		int ary1[] = new int[2 * m];
		for (i = 0; i < 2 * m; i++) {
			ary1[i] = s.nextInt();


		}

		int ary[] = new int[n];

		for (i = 0; i < n; i++) {
			count = 0;
			for (j = 0; j < 2 * m; j++) {

				if (ary1[j] == i + 1) {
					count++;


				}
			}
			ary[i] = count;
			System.out.println(ary[i]);

		}

	} main {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int m = s.nextInt();
		int i = 0;
		int j = 0;
		int count = 0;


		int ary1[] = new int[2 * m];
		for (i = 0; i < 2 * m; i++) {
			ary1[i] = s.nextInt();


		}

		int ary[] = new int[n];

		for (i = 0; i < n; i++) {
			count = 0;
			for (j = 0; j < 2 * m; j++) {

				if (ary1[j] == i + 1) {
					count++;


				}
			}
			ary[i] = count;
			System.out.println(ary[i]);

		}

	} Scanner s = new Scanner(System.in); s new Scanner(System.in) int n = s.nextInt(); n s.nextInt() s.nextInt s int m = s.nextInt(); m s.nextInt() s.nextInt s int i = 0; i 0 int j = 0; j 0 int count = 0; count 0 int ary1[] = new int[2 * m]; ary1 new int[2 * m] 2 * m 2 m for (i = 0; i < 2 * m; i++) {
			ary1[i] = s.nextInt();


		} i = 0; i = 0 i 0 i < 2 * m i 2 * m 2 m i++ i++ i {
			ary1[i] = s.nextInt();


		} {
			ary1[i] = s.nextInt();


		} ary1[i] = s.nextInt() ary1[i] ary1 i s.nextInt() s.nextInt s int ary[] = new int[n]; ary new int[n] n for (i = 0; i < n; i++) {
			count = 0;
			for (j = 0; j < 2 * m; j++) {

				if (ary1[j] == i + 1) {
					count++;


				}
			}
			ary[i] = count;
			System.out.println(ary[i]);

		} i = 0; i = 0 i 0 i < n i n i++ i++ i {
			count = 0;
			for (j = 0; j < 2 * m; j++) {

				if (ary1[j] == i + 1) {
					count++;


				}
			}
			ary[i] = count;
			System.out.println(ary[i]);

		} {
			count = 0;
			for (j = 0; j < 2 * m; j++) {

				if (ary1[j] == i + 1) {
					count++;


				}
			}
			ary[i] = count;
			System.out.println(ary[i]);

		} count = 0 count 0 for (j = 0; j < 2 * m; j++) {

				if (ary1[j] == i + 1) {
					count++;


				}
			} j = 0; j = 0 j 0 j < 2 * m j 2 * m 2 m j++ j++ j {

				if (ary1[j] == i + 1) {
					count++;


				}
			} {

				if (ary1[j] == i + 1) {
					count++;


				}
			} if (ary1[j] == i + 1) {
					count++;


				} ary1[j] == i + 1 ary1[j] ary1 j i + 1 i 1 {
					count++;


				} count++ count ary[i] = count ary[i] ary i count System.out.println(ary[i]) System.out.println System.out System System.out ary[i] ary i String[] args args public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int m = s.nextInt();
		int i = 0;
		int j = 0;
		int count = 0;


		int ary1[] = new int[2 * m];
		for (i = 0; i < 2 * m; i++) {
			ary1[i] = s.nextInt();


		}

		int ary[] = new int[n];

		for (i = 0; i < n; i++) {
			count = 0;
			for (j = 0; j < 2 * m; j++) {

				if (ary1[j] == i + 1) {
					count++;


				}
			}
			ary[i] = count;
			System.out.println(ary[i]);

		}

	}

} public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int m = s.nextInt();
		int i = 0;
		int j = 0;
		int count = 0;


		int ary1[] = new int[2 * m];
		for (i = 0; i < 2 * m; i++) {
			ary1[i] = s.nextInt();


		}

		int ary[] = new int[n];

		for (i = 0; i < n; i++) {
			count = 0;
			for (j = 0; j < 2 * m; j++) {

				if (ary1[j] == i + 1) {
					count++;


				}
			}
			ary[i] = count;
			System.out.println(ary[i]);

		}

	}

} Main

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int m = s.nextInt();
		int i = 0;
		int j = 0;
		int count = 0;


		int ary1[] = new int[2 * m];
		for (i = 0; i < 2 * m; i++) {
			ary1[i] = s.nextInt();


		}

		int ary[] = new int[n];

		for (i = 0; i < n; i++) {
			count = 0;
			for (j = 0; j < 2 * m; j++) {

				if (ary1[j] == i + 1) {
					count++;


				}
			}
			ary[i] = count;
			System.out.println(ary[i]);

		}

	}

}