import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String str[] = br.readLine().split(" ");
		int n = Integer.parseInt(str[0]);
		int m = Integer.parseInt(str[1]);

		int edge[][] = new int[n][n];

		for (int i = 0; i < m; i++) {
			str = br.readLine().split(" ");
			int a = Integer.parseInt(str[0]) - 1;
			int b = Integer.parseInt(str[1]) - 1;

			edge[a][b] += 1;
			edge[b][a] += 1;
		}

		for (int i = 0; i < n; i++) {
			int count = 0;

			for (int j = 0; j < n; j++) {
				if (edge[i][j] != 0)
					count += edge[i][j];
			}
			System.out.println(count);
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String str[] = br.readLine().split(" ");
		int n = Integer.parseInt(str[0]);
		int m = Integer.parseInt(str[1]);

		int edge[][] = new int[n][n];

		for (int i = 0; i < m; i++) {
			str = br.readLine().split(" ");
			int a = Integer.parseInt(str[0]) - 1;
			int b = Integer.parseInt(str[1]) - 1;

			edge[a][b] += 1;
			edge[b][a] += 1;
		}

		for (int i = 0; i < n; i++) {
			int count = 0;

			for (int j = 0; j < n; j++) {
				if (edge[i][j] != 0)
					count += edge[i][j];
			}
			System.out.println(count);
		}
	}
} Main public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String str[] = br.readLine().split(" ");
		int n = Integer.parseInt(str[0]);
		int m = Integer.parseInt(str[1]);

		int edge[][] = new int[n][n];

		for (int i = 0; i < m; i++) {
			str = br.readLine().split(" ");
			int a = Integer.parseInt(str[0]) - 1;
			int b = Integer.parseInt(str[1]) - 1;

			edge[a][b] += 1;
			edge[b][a] += 1;
		}

		for (int i = 0; i < n; i++) {
			int count = 0;

			for (int j = 0; j < n; j++) {
				if (edge[i][j] != 0)
					count += edge[i][j];
			}
			System.out.println(count);
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String str[] = br.readLine().split(" ");
		int n = Integer.parseInt(str[0]);
		int m = Integer.parseInt(str[1]);

		int edge[][] = new int[n][n];

		for (int i = 0; i < m; i++) {
			str = br.readLine().split(" ");
			int a = Integer.parseInt(str[0]) - 1;
			int b = Integer.parseInt(str[1]) - 1;

			edge[a][b] += 1;
			edge[b][a] += 1;
		}

		for (int i = 0; i < n; i++) {
			int count = 0;

			for (int j = 0; j < n; j++) {
				if (edge[i][j] != 0)
					count += edge[i][j];
			}
			System.out.println(count);
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str[] = br.readLine().split(" "); str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int n = Integer.parseInt(str[0]); n Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 int m = Integer.parseInt(str[1]); m Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 int edge[][] = new int[n][n]; edge new int[n][n] n n for (int i = 0; i < m; i++) {
			str = br.readLine().split(" ");
			int a = Integer.parseInt(str[0]) - 1;
			int b = Integer.parseInt(str[1]) - 1;

			edge[a][b] += 1;
			edge[b][a] += 1;
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			str = br.readLine().split(" ");
			int a = Integer.parseInt(str[0]) - 1;
			int b = Integer.parseInt(str[1]) - 1;

			edge[a][b] += 1;
			edge[b][a] += 1;
		} {
			str = br.readLine().split(" ");
			int a = Integer.parseInt(str[0]) - 1;
			int b = Integer.parseInt(str[1]) - 1;

			edge[a][b] += 1;
			edge[b][a] += 1;
		} str = br.readLine().split(" ") str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int a = Integer.parseInt(str[0]) - 1; a Integer.parseInt(str[0]) - 1 Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 1 int b = Integer.parseInt(str[1]) - 1; b Integer.parseInt(str[1]) - 1 Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 1 edge[a][b] += 1 edge[a][b] edge[a] edge a b 1 edge[b][a] += 1 edge[b][a] edge[b] edge b a 1 for (int i = 0; i < n; i++) {
			int count = 0;

			for (int j = 0; j < n; j++) {
				if (edge[i][j] != 0)
					count += edge[i][j];
			}
			System.out.println(count);
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int count = 0;

			for (int j = 0; j < n; j++) {
				if (edge[i][j] != 0)
					count += edge[i][j];
			}
			System.out.println(count);
		} {
			int count = 0;

			for (int j = 0; j < n; j++) {
				if (edge[i][j] != 0)
					count += edge[i][j];
			}
			System.out.println(count);
		} int count = 0; count 0 for (int j = 0; j < n; j++) {
				if (edge[i][j] != 0)
					count += edge[i][j];
			} int j = 0; int j = 0; j 0 j < n j n j++ j++ j {
				if (edge[i][j] != 0)
					count += edge[i][j];
			} {
				if (edge[i][j] != 0)
					count += edge[i][j];
			} if (edge[i][j] != 0)
					count += edge[i][j]; edge[i][j] != 0 edge[i][j] edge[i] edge i j 0 count += edge[i][j] count edge[i][j] edge[i] edge i j System.out.println(count) System.out.println System.out System System.out count String args[] args public class Main {

	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String str[] = br.readLine().split(" ");
		int n = Integer.parseInt(str[0]);
		int m = Integer.parseInt(str[1]);

		int edge[][] = new int[n][n];

		for (int i = 0; i < m; i++) {
			str = br.readLine().split(" ");
			int a = Integer.parseInt(str[0]) - 1;
			int b = Integer.parseInt(str[1]) - 1;

			edge[a][b] += 1;
			edge[b][a] += 1;
		}

		for (int i = 0; i < n; i++) {
			int count = 0;

			for (int j = 0; j < n; j++) {
				if (edge[i][j] != 0)
					count += edge[i][j];
			}
			System.out.println(count);
		}
	}
} public class Main {

	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String str[] = br.readLine().split(" ");
		int n = Integer.parseInt(str[0]);
		int m = Integer.parseInt(str[1]);

		int edge[][] = new int[n][n];

		for (int i = 0; i < m; i++) {
			str = br.readLine().split(" ");
			int a = Integer.parseInt(str[0]) - 1;
			int b = Integer.parseInt(str[1]) - 1;

			edge[a][b] += 1;
			edge[b][a] += 1;
		}

		for (int i = 0; i < n; i++) {
			int count = 0;

			for (int j = 0; j < n; j++) {
				if (edge[i][j] != 0)
					count += edge[i][j];
			}
			System.out.println(count);
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String str[] = br.readLine().split(" ");
		int n = Integer.parseInt(str[0]);
		int m = Integer.parseInt(str[1]);

		int edge[][] = new int[n][n];

		for (int i = 0; i < m; i++) {
			str = br.readLine().split(" ");
			int a = Integer.parseInt(str[0]) - 1;
			int b = Integer.parseInt(str[1]) - 1;

			edge[a][b] += 1;
			edge[b][a] += 1;
		}

		for (int i = 0; i < n; i++) {
			int count = 0;

			for (int j = 0; j < n; j++) {
				if (edge[i][j] != 0)
					count += edge[i][j];
			}
			System.out.println(count);
		}
	}
}
