
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		
		List<Integer> list = new ArrayList<>();
		
		for (int i = 0; i < m; i++) {
			list.add(sc.nextInt());
			list.add(sc.nextInt());
		}
		
		int[] road = new int[n];
		for (int i = 0; i < road.length; i++) {
			for (int r : list) {
				if (r == i + 1) {
					road[i]++;
				}
			}
			System.out.println(road[i]);
		}
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.List; List 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 = sc.nextInt();
		int m = sc.nextInt();
		
		List<Integer> list = new ArrayList<>();
		
		for (int i = 0; i < m; i++) {
			list.add(sc.nextInt());
			list.add(sc.nextInt());
		}
		
		int[] road = new int[n];
		for (int i = 0; i < road.length; i++) {
			for (int r : list) {
				if (r == i + 1) {
					road[i]++;
				}
			}
			System.out.println(road[i]);
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		
		List<Integer> list = new ArrayList<>();
		
		for (int i = 0; i < m; i++) {
			list.add(sc.nextInt());
			list.add(sc.nextInt());
		}
		
		int[] road = new int[n];
		for (int i = 0; i < road.length; i++) {
			for (int r : list) {
				if (r == i + 1) {
					road[i]++;
				}
			}
			System.out.println(road[i]);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		
		List<Integer> list = new ArrayList<>();
		
		for (int i = 0; i < m; i++) {
			list.add(sc.nextInt());
			list.add(sc.nextInt());
		}
		
		int[] road = new int[n];
		for (int i = 0; i < road.length; i++) {
			for (int r : list) {
				if (r == i + 1) {
					road[i]++;
				}
			}
			System.out.println(road[i]);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int m = sc.nextInt(); m sc.nextInt() sc.nextInt sc List<Integer> list = new ArrayList<>(); list new ArrayList<>() for (int i = 0; i < m; i++) {
			list.add(sc.nextInt());
			list.add(sc.nextInt());
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			list.add(sc.nextInt());
			list.add(sc.nextInt());
		} {
			list.add(sc.nextInt());
			list.add(sc.nextInt());
		} list.add(sc.nextInt()) list.add list sc.nextInt() sc.nextInt sc list.add(sc.nextInt()) list.add list sc.nextInt() sc.nextInt sc int[] road = new int[n]; road new int[n] n for (int i = 0; i < road.length; i++) {
			for (int r : list) {
				if (r == i + 1) {
					road[i]++;
				}
			}
			System.out.println(road[i]);
		} int i = 0; int i = 0; i 0 i < road.length i road.length road road.length i++ i++ i {
			for (int r : list) {
				if (r == i + 1) {
					road[i]++;
				}
			}
			System.out.println(road[i]);
		} {
			for (int r : list) {
				if (r == i + 1) {
					road[i]++;
				}
			}
			System.out.println(road[i]);
		} for (int r : list) {
				if (r == i + 1) {
					road[i]++;
				}
			} int r list {
				if (r == i + 1) {
					road[i]++;
				}
			} {
				if (r == i + 1) {
					road[i]++;
				}
			} if (r == i + 1) {
					road[i]++;
				} r == i + 1 r i + 1 i 1 {
					road[i]++;
				} road[i]++ road[i] road i System.out.println(road[i]) System.out.println System.out System System.out road[i] road i String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		
		List<Integer> list = new ArrayList<>();
		
		for (int i = 0; i < m; i++) {
			list.add(sc.nextInt());
			list.add(sc.nextInt());
		}
		
		int[] road = new int[n];
		for (int i = 0; i < road.length; i++) {
			for (int r : list) {
				if (r == i + 1) {
					road[i]++;
				}
			}
			System.out.println(road[i]);
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		
		List<Integer> list = new ArrayList<>();
		
		for (int i = 0; i < m; i++) {
			list.add(sc.nextInt());
			list.add(sc.nextInt());
		}
		
		int[] road = new int[n];
		for (int i = 0; i < road.length; i++) {
			for (int r : list) {
				if (r == i + 1) {
					road[i]++;
				}
			}
			System.out.println(road[i]);
		}
	}
} Main

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		
		List<Integer> list = new ArrayList<>();
		
		for (int i = 0; i < m; i++) {
			list.add(sc.nextInt());
			list.add(sc.nextInt());
		}
		
		int[] road = new int[n];
		for (int i = 0; i < road.length; i++) {
			for (int r : list) {
				if (r == i + 1) {
					road[i]++;
				}
			}
			System.out.println(road[i]);
		}
	}
}