import java.util.*;
public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int M = stdIn.nextInt();
		int[] city = new int[N];
		Arrays.fill(city, 0);
		
		for(int i = 0; i < M; i++) {
			int a = stdIn.nextInt();
			int b = stdIn.nextInt();
			city[a-1]++;
			city[b-1]++;
		}
		
		for(int i = 0; i < N; i++) {
			System.out.println(city[i]);
		}

	}

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

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int M = stdIn.nextInt();
		int[] city = new int[N];
		Arrays.fill(city, 0);
		
		for(int i = 0; i < M; i++) {
			int a = stdIn.nextInt();
			int b = stdIn.nextInt();
			city[a-1]++;
			city[b-1]++;
		}
		
		for(int i = 0; i < N; i++) {
			System.out.println(city[i]);
		}

	}

} Main public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int M = stdIn.nextInt();
		int[] city = new int[N];
		Arrays.fill(city, 0);
		
		for(int i = 0; i < M; i++) {
			int a = stdIn.nextInt();
			int b = stdIn.nextInt();
			city[a-1]++;
			city[b-1]++;
		}
		
		for(int i = 0; i < N; i++) {
			System.out.println(city[i]);
		}

	} main {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int M = stdIn.nextInt();
		int[] city = new int[N];
		Arrays.fill(city, 0);
		
		for(int i = 0; i < M; i++) {
			int a = stdIn.nextInt();
			int b = stdIn.nextInt();
			city[a-1]++;
			city[b-1]++;
		}
		
		for(int i = 0; i < N; i++) {
			System.out.println(city[i]);
		}

	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int N = stdIn.nextInt(); N stdIn.nextInt() stdIn.nextInt stdIn int M = stdIn.nextInt(); M stdIn.nextInt() stdIn.nextInt stdIn int[] city = new int[N]; city new int[N] N Arrays.fill(city, 0) Arrays.fill Arrays city 0 for(int i = 0; i < M; i++) {
			int a = stdIn.nextInt();
			int b = stdIn.nextInt();
			city[a-1]++;
			city[b-1]++;
		} int i = 0; int i = 0; i 0 i < M i M i++ i++ i {
			int a = stdIn.nextInt();
			int b = stdIn.nextInt();
			city[a-1]++;
			city[b-1]++;
		} {
			int a = stdIn.nextInt();
			int b = stdIn.nextInt();
			city[a-1]++;
			city[b-1]++;
		} int a = stdIn.nextInt(); a stdIn.nextInt() stdIn.nextInt stdIn int b = stdIn.nextInt(); b stdIn.nextInt() stdIn.nextInt stdIn city[a-1]++ city[a-1] city a-1 a 1 city[b-1]++ city[b-1] city b-1 b 1 for(int i = 0; i < N; i++) {
			System.out.println(city[i]);
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			System.out.println(city[i]);
		} {
			System.out.println(city[i]);
		} System.out.println(city[i]) System.out.println System.out System System.out city[i] city i String[] args args public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int M = stdIn.nextInt();
		int[] city = new int[N];
		Arrays.fill(city, 0);
		
		for(int i = 0; i < M; i++) {
			int a = stdIn.nextInt();
			int b = stdIn.nextInt();
			city[a-1]++;
			city[b-1]++;
		}
		
		for(int i = 0; i < N; i++) {
			System.out.println(city[i]);
		}

	}

} public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int M = stdIn.nextInt();
		int[] city = new int[N];
		Arrays.fill(city, 0);
		
		for(int i = 0; i < M; i++) {
			int a = stdIn.nextInt();
			int b = stdIn.nextInt();
			city[a-1]++;
			city[b-1]++;
		}
		
		for(int i = 0; i < N; i++) {
			System.out.println(city[i]);
		}

	}

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

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int M = stdIn.nextInt();
		int[] city = new int[N];
		Arrays.fill(city, 0);
		
		for(int i = 0; i < M; i++) {
			int a = stdIn.nextInt();
			int b = stdIn.nextInt();
			city[a-1]++;
			city[b-1]++;
		}
		
		for(int i = 0; i < N; i++) {
			System.out.println(city[i]);
		}

	}

}