import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] road = new int[n];

		for(int i = 0 ; i < n ; i++) {
			road[i] = 0;
		}

		for(int i = 0 ; i < m ; i++) {
			int from = sc.nextInt();
			int to = sc.nextInt();
			road[from - 1] += 1;
			road[to - 1] += 1;
		}

		for(int i = 0 ; i < n ; i++) {
			System.out.println(road[i]);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] road = new int[n];

		for(int i = 0 ; i < n ; i++) {
			road[i] = 0;
		}

		for(int i = 0 ; i < m ; i++) {
			int from = sc.nextInt();
			int to = sc.nextInt();
			road[from - 1] += 1;
			road[to - 1] += 1;
		}

		for(int i = 0 ; i < n ; i++) {
			System.out.println(road[i]);
		}
	}
} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] road = new int[n];

		for(int i = 0 ; i < n ; i++) {
			road[i] = 0;
		}

		for(int i = 0 ; i < m ; i++) {
			int from = sc.nextInt();
			int to = sc.nextInt();
			road[from - 1] += 1;
			road[to - 1] += 1;
		}

		for(int i = 0 ; i < n ; i++) {
			System.out.println(road[i]);
		}
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] road = new int[n];

		for(int i = 0 ; i < n ; i++) {
			road[i] = 0;
		}

		for(int i = 0 ; i < m ; i++) {
			int from = sc.nextInt();
			int to = sc.nextInt();
			road[from - 1] += 1;
			road[to - 1] += 1;
		}

		for(int i = 0 ; i < n ; 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 int[] road = new int[n]; road new int[n] n for(int i = 0 ; i < n ; i++) {
			road[i] = 0;
		} int i = 0 ; int i = 0 ; i 0 i < n i n i++ i++ i {
			road[i] = 0;
		} {
			road[i] = 0;
		} road[i] = 0 road[i] road i 0 for(int i = 0 ; i < m ; i++) {
			int from = sc.nextInt();
			int to = sc.nextInt();
			road[from - 1] += 1;
			road[to - 1] += 1;
		} int i = 0 ; int i = 0 ; i 0 i < m i m i++ i++ i {
			int from = sc.nextInt();
			int to = sc.nextInt();
			road[from - 1] += 1;
			road[to - 1] += 1;
		} {
			int from = sc.nextInt();
			int to = sc.nextInt();
			road[from - 1] += 1;
			road[to - 1] += 1;
		} int from = sc.nextInt(); from sc.nextInt() sc.nextInt sc int to = sc.nextInt(); to sc.nextInt() sc.nextInt sc road[from - 1] += 1 road[from - 1] road from - 1 from 1 1 road[to - 1] += 1 road[to - 1] road to - 1 to 1 1 for(int i = 0 ; i < n ; i++) {
			System.out.println(road[i]);
		} int i = 0 ; int i = 0 ; i 0 i < n i n 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 {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] road = new int[n];

		for(int i = 0 ; i < n ; i++) {
			road[i] = 0;
		}

		for(int i = 0 ; i < m ; i++) {
			int from = sc.nextInt();
			int to = sc.nextInt();
			road[from - 1] += 1;
			road[to - 1] += 1;
		}

		for(int i = 0 ; i < n ; i++) {
			System.out.println(road[i]);
		}
	}
} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] road = new int[n];

		for(int i = 0 ; i < n ; i++) {
			road[i] = 0;
		}

		for(int i = 0 ; i < m ; i++) {
			int from = sc.nextInt();
			int to = sc.nextInt();
			road[from - 1] += 1;
			road[to - 1] += 1;
		}

		for(int i = 0 ; i < n ; i++) {
			System.out.println(road[i]);
		}
	}
} Main
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int[] road = new int[n];

		for(int i = 0 ; i < n ; i++) {
			road[i] = 0;
		}

		for(int i = 0 ; i < m ; i++) {
			int from = sc.nextInt();
			int to = sc.nextInt();
			road[from - 1] += 1;
			road[to - 1] += 1;
		}

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