import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int i = 0;
		int[] a = new int[m];
		int[] b = new int[m];
		for(i = 0; i < m; i++) {
			a[i] = scan.nextInt();
			b[i] = scan.nextInt();	
		}
		for(i = 0; i < n; i++) {
			int c = 0;
			for(int j = 0; j < m; j++) {
				if(i + 1 == a[j] || i + 1 == b[j]) {
					c++;
				}
			}
			System.out.println(c);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int i = 0;
		int[] a = new int[m];
		int[] b = new int[m];
		for(i = 0; i < m; i++) {
			a[i] = scan.nextInt();
			b[i] = scan.nextInt();	
		}
		for(i = 0; i < n; i++) {
			int c = 0;
			for(int j = 0; j < m; j++) {
				if(i + 1 == a[j] || i + 1 == b[j]) {
					c++;
				}
			}
			System.out.println(c);
		}
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int i = 0;
		int[] a = new int[m];
		int[] b = new int[m];
		for(i = 0; i < m; i++) {
			a[i] = scan.nextInt();
			b[i] = scan.nextInt();	
		}
		for(i = 0; i < n; i++) {
			int c = 0;
			for(int j = 0; j < m; j++) {
				if(i + 1 == a[j] || i + 1 == b[j]) {
					c++;
				}
			}
			System.out.println(c);
		}
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int i = 0;
		int[] a = new int[m];
		int[] b = new int[m];
		for(i = 0; i < m; i++) {
			a[i] = scan.nextInt();
			b[i] = scan.nextInt();	
		}
		for(i = 0; i < n; i++) {
			int c = 0;
			for(int j = 0; j < m; j++) {
				if(i + 1 == a[j] || i + 1 == b[j]) {
					c++;
				}
			}
			System.out.println(c);
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int m = scan.nextInt(); m scan.nextInt() scan.nextInt scan int i = 0; i 0 int[] a = new int[m]; a new int[m] m int[] b = new int[m]; b new int[m] m for(i = 0; i < m; i++) {
			a[i] = scan.nextInt();
			b[i] = scan.nextInt();	
		} i = 0; i = 0 i 0 i < m i m i++ i++ i {
			a[i] = scan.nextInt();
			b[i] = scan.nextInt();	
		} {
			a[i] = scan.nextInt();
			b[i] = scan.nextInt();	
		} a[i] = scan.nextInt() a[i] a i scan.nextInt() scan.nextInt scan b[i] = scan.nextInt() b[i] b i scan.nextInt() scan.nextInt scan for(i = 0; i < n; i++) {
			int c = 0;
			for(int j = 0; j < m; j++) {
				if(i + 1 == a[j] || i + 1 == b[j]) {
					c++;
				}
			}
			System.out.println(c);
		} i = 0; i = 0 i 0 i < n i n i++ i++ i {
			int c = 0;
			for(int j = 0; j < m; j++) {
				if(i + 1 == a[j] || i + 1 == b[j]) {
					c++;
				}
			}
			System.out.println(c);
		} {
			int c = 0;
			for(int j = 0; j < m; j++) {
				if(i + 1 == a[j] || i + 1 == b[j]) {
					c++;
				}
			}
			System.out.println(c);
		} int c = 0; c 0 for(int j = 0; j < m; j++) {
				if(i + 1 == a[j] || i + 1 == b[j]) {
					c++;
				}
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				if(i + 1 == a[j] || i + 1 == b[j]) {
					c++;
				}
			} {
				if(i + 1 == a[j] || i + 1 == b[j]) {
					c++;
				}
			} if(i + 1 == a[j] || i + 1 == b[j]) {
					c++;
				} i + 1 == a[j] || i + 1 == b[j] i + 1 == a[j] i + 1 i 1 a[j] a j i + 1 == b[j] i + 1 i 1 b[j] b j {
					c++;
				} c++ c System.out.println(c) System.out.println System.out System System.out c String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int i = 0;
		int[] a = new int[m];
		int[] b = new int[m];
		for(i = 0; i < m; i++) {
			a[i] = scan.nextInt();
			b[i] = scan.nextInt();	
		}
		for(i = 0; i < n; i++) {
			int c = 0;
			for(int j = 0; j < m; j++) {
				if(i + 1 == a[j] || i + 1 == b[j]) {
					c++;
				}
			}
			System.out.println(c);
		}
	}
} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int i = 0;
		int[] a = new int[m];
		int[] b = new int[m];
		for(i = 0; i < m; i++) {
			a[i] = scan.nextInt();
			b[i] = scan.nextInt();	
		}
		for(i = 0; i < n; i++) {
			int c = 0;
			for(int j = 0; j < m; j++) {
				if(i + 1 == a[j] || i + 1 == b[j]) {
					c++;
				}
			}
			System.out.println(c);
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int i = 0;
		int[] a = new int[m];
		int[] b = new int[m];
		for(i = 0; i < m; i++) {
			a[i] = scan.nextInt();
			b[i] = scan.nextInt();	
		}
		for(i = 0; i < n; i++) {
			int c = 0;
			for(int j = 0; j < m; j++) {
				if(i + 1 == a[j] || i + 1 == b[j]) {
					c++;
				}
			}
			System.out.println(c);
		}
	}
}