import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt(), m = scanner.nextInt();
		int[] counts = new int[n];
		Arrays.fill(counts, 0);
		for (int i = 0; i < m; i++) {
			counts[scanner.nextInt()-1]++;
			counts[scanner.nextInt()-1]++;
		}
		for (int i = 0; i < counts.length; i++) {
			System.out.println(counts[i]);
		}
		
		
		scanner.close();
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt(), m = scanner.nextInt();
		int[] counts = new int[n];
		Arrays.fill(counts, 0);
		for (int i = 0; i < m; i++) {
			counts[scanner.nextInt()-1]++;
			counts[scanner.nextInt()-1]++;
		}
		for (int i = 0; i < counts.length; i++) {
			System.out.println(counts[i]);
		}
		
		
		scanner.close();
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt(), m = scanner.nextInt();
		int[] counts = new int[n];
		Arrays.fill(counts, 0);
		for (int i = 0; i < m; i++) {
			counts[scanner.nextInt()-1]++;
			counts[scanner.nextInt()-1]++;
		}
		for (int i = 0; i < counts.length; i++) {
			System.out.println(counts[i]);
		}
		
		
		scanner.close();
	} main {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt(), m = scanner.nextInt();
		int[] counts = new int[n];
		Arrays.fill(counts, 0);
		for (int i = 0; i < m; i++) {
			counts[scanner.nextInt()-1]++;
			counts[scanner.nextInt()-1]++;
		}
		for (int i = 0; i < counts.length; i++) {
			System.out.println(counts[i]);
		}
		
		
		scanner.close();
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt() n scanner.nextInt() scanner.nextInt scanner m = scanner.nextInt(); m scanner.nextInt() scanner.nextInt scanner int[] counts = new int[n]; counts new int[n] n Arrays.fill(counts, 0) Arrays.fill Arrays counts 0 for (int i = 0; i < m; i++) {
			counts[scanner.nextInt()-1]++;
			counts[scanner.nextInt()-1]++;
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			counts[scanner.nextInt()-1]++;
			counts[scanner.nextInt()-1]++;
		} {
			counts[scanner.nextInt()-1]++;
			counts[scanner.nextInt()-1]++;
		} counts[scanner.nextInt()-1]++ counts[scanner.nextInt()-1] counts scanner.nextInt()-1 scanner.nextInt() scanner.nextInt scanner 1 counts[scanner.nextInt()-1]++ counts[scanner.nextInt()-1] counts scanner.nextInt()-1 scanner.nextInt() scanner.nextInt scanner 1 for (int i = 0; i < counts.length; i++) {
			System.out.println(counts[i]);
		} int i = 0; int i = 0; i 0 i < counts.length i counts.length counts counts.length i++ i++ i {
			System.out.println(counts[i]);
		} {
			System.out.println(counts[i]);
		} System.out.println(counts[i]) System.out.println System.out System System.out counts[i] counts i scanner.close() scanner.close scanner String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt(), m = scanner.nextInt();
		int[] counts = new int[n];
		Arrays.fill(counts, 0);
		for (int i = 0; i < m; i++) {
			counts[scanner.nextInt()-1]++;
			counts[scanner.nextInt()-1]++;
		}
		for (int i = 0; i < counts.length; i++) {
			System.out.println(counts[i]);
		}
		
		
		scanner.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt(), m = scanner.nextInt();
		int[] counts = new int[n];
		Arrays.fill(counts, 0);
		for (int i = 0; i < m; i++) {
			counts[scanner.nextInt()-1]++;
			counts[scanner.nextInt()-1]++;
		}
		for (int i = 0; i < counts.length; i++) {
			System.out.println(counts[i]);
		}
		
		
		scanner.close();
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt(), m = scanner.nextInt();
		int[] counts = new int[n];
		Arrays.fill(counts, 0);
		for (int i = 0; i < m; i++) {
			counts[scanner.nextInt()-1]++;
			counts[scanner.nextInt()-1]++;
		}
		for (int i = 0; i < counts.length; i++) {
			System.out.println(counts[i]);
		}
		
		
		scanner.close();
	}
}