import java.util.Scanner;


public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		String[] NM = scan.nextLine().split(" ");
		String[] tmp;
		int[] road = new int[Integer.parseInt(NM[0])];
		for(int i = 0; i < road.length; i++){
			road[i] = 0;
		}
		for(int i = 0; i < Integer.parseInt(NM[1]); i++){
			tmp = scan.nextLine().split(" ");
			road[Integer.parseInt(tmp[0])-1]++;
			road[Integer.parseInt(tmp[1])-1]++;
		}
		for(int i = 0; i < road.length; i++){
			System.out.println(road[i]);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		String[] NM = scan.nextLine().split(" ");
		String[] tmp;
		int[] road = new int[Integer.parseInt(NM[0])];
		for(int i = 0; i < road.length; i++){
			road[i] = 0;
		}
		for(int i = 0; i < Integer.parseInt(NM[1]); i++){
			tmp = scan.nextLine().split(" ");
			road[Integer.parseInt(tmp[0])-1]++;
			road[Integer.parseInt(tmp[1])-1]++;
		}
		for(int i = 0; i < road.length; i++){
			System.out.println(road[i]);
		}
	}
} Main /**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		String[] NM = scan.nextLine().split(" ");
		String[] tmp;
		int[] road = new int[Integer.parseInt(NM[0])];
		for(int i = 0; i < road.length; i++){
			road[i] = 0;
		}
		for(int i = 0; i < Integer.parseInt(NM[1]); i++){
			tmp = scan.nextLine().split(" ");
			road[Integer.parseInt(tmp[0])-1]++;
			road[Integer.parseInt(tmp[1])-1]++;
		}
		for(int i = 0; i < road.length; i++){
			System.out.println(road[i]);
		}
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		String[] NM = scan.nextLine().split(" ");
		String[] tmp;
		int[] road = new int[Integer.parseInt(NM[0])];
		for(int i = 0; i < road.length; i++){
			road[i] = 0;
		}
		for(int i = 0; i < Integer.parseInt(NM[1]); i++){
			tmp = scan.nextLine().split(" ");
			road[Integer.parseInt(tmp[0])-1]++;
			road[Integer.parseInt(tmp[1])-1]++;
		}
		for(int i = 0; i < road.length; i++){
			System.out.println(road[i]);
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String[] NM = scan.nextLine().split(" "); NM scan.nextLine().split(" ") scan.nextLine().split scan.nextLine() scan.nextLine scan " " String[] tmp; tmp int[] road = new int[Integer.parseInt(NM[0])]; road new int[Integer.parseInt(NM[0])] Integer.parseInt(NM[0]) Integer.parseInt Integer NM[0] NM 0 for(int i = 0; i < road.length; i++){
			road[i] = 0;
		} int i = 0; int i = 0; i 0 i < road.length i road.length road road.length i++ i++ i {
			road[i] = 0;
		} {
			road[i] = 0;
		} road[i] = 0 road[i] road i 0 for(int i = 0; i < Integer.parseInt(NM[1]); i++){
			tmp = scan.nextLine().split(" ");
			road[Integer.parseInt(tmp[0])-1]++;
			road[Integer.parseInt(tmp[1])-1]++;
		} int i = 0; int i = 0; i 0 i < Integer.parseInt(NM[1]) i Integer.parseInt(NM[1]) Integer.parseInt Integer NM[1] NM 1 i++ i++ i {
			tmp = scan.nextLine().split(" ");
			road[Integer.parseInt(tmp[0])-1]++;
			road[Integer.parseInt(tmp[1])-1]++;
		} {
			tmp = scan.nextLine().split(" ");
			road[Integer.parseInt(tmp[0])-1]++;
			road[Integer.parseInt(tmp[1])-1]++;
		} tmp = scan.nextLine().split(" ") tmp scan.nextLine().split(" ") scan.nextLine().split scan.nextLine() scan.nextLine scan " " road[Integer.parseInt(tmp[0])-1]++ road[Integer.parseInt(tmp[0])-1] road Integer.parseInt(tmp[0])-1 Integer.parseInt(tmp[0]) Integer.parseInt Integer tmp[0] tmp 0 1 road[Integer.parseInt(tmp[1])-1]++ road[Integer.parseInt(tmp[1])-1] road Integer.parseInt(tmp[1])-1 Integer.parseInt(tmp[1]) Integer.parseInt Integer tmp[1] tmp 1 1 for(int i = 0; i < road.length; 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 {
			System.out.println(road[i]);
		} {
			System.out.println(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 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		String[] NM = scan.nextLine().split(" ");
		String[] tmp;
		int[] road = new int[Integer.parseInt(NM[0])];
		for(int i = 0; i < road.length; i++){
			road[i] = 0;
		}
		for(int i = 0; i < Integer.parseInt(NM[1]); i++){
			tmp = scan.nextLine().split(" ");
			road[Integer.parseInt(tmp[0])-1]++;
			road[Integer.parseInt(tmp[1])-1]++;
		}
		for(int i = 0; i < road.length; i++){
			System.out.println(road[i]);
		}
	}
} public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		String[] NM = scan.nextLine().split(" ");
		String[] tmp;
		int[] road = new int[Integer.parseInt(NM[0])];
		for(int i = 0; i < road.length; i++){
			road[i] = 0;
		}
		for(int i = 0; i < Integer.parseInt(NM[1]); i++){
			tmp = scan.nextLine().split(" ");
			road[Integer.parseInt(tmp[0])-1]++;
			road[Integer.parseInt(tmp[1])-1]++;
		}
		for(int i = 0; i < road.length; i++){
			System.out.println(road[i]);
		}
	}
} Main
import java.util.Scanner;


public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		String[] NM = scan.nextLine().split(" ");
		String[] tmp;
		int[] road = new int[Integer.parseInt(NM[0])];
		for(int i = 0; i < road.length; i++){
			road[i] = 0;
		}
		for(int i = 0; i < Integer.parseInt(NM[1]); i++){
			tmp = scan.nextLine().split(" ");
			road[Integer.parseInt(tmp[0])-1]++;
			road[Integer.parseInt(tmp[1])-1]++;
		}
		for(int i = 0; i < road.length; i++){
			System.out.println(road[i]);
		}
	}
}
