import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		int i, cnt = 0;;
		int[] a = new int[M];
		int[] b = new int[M];
		for(i = 0;i < M;i ++) {
			a[i] = sc.nextInt();
			b[i] = sc.nextInt();
		}
		for(i = 1;i <= N;i ++) {
			for(int k = 0;k < M;k ++) {
				if(i == a[k]) cnt++;
				if(i == b[k]) cnt++;
			}
			System.out.println(cnt);
			cnt = 0;
		}
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		int i, cnt = 0;;
		int[] a = new int[M];
		int[] b = new int[M];
		for(i = 0;i < M;i ++) {
			a[i] = sc.nextInt();
			b[i] = sc.nextInt();
		}
		for(i = 1;i <= N;i ++) {
			for(int k = 0;k < M;k ++) {
				if(i == a[k]) cnt++;
				if(i == b[k]) cnt++;
			}
			System.out.println(cnt);
			cnt = 0;
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		int i, cnt = 0;;
		int[] a = new int[M];
		int[] b = new int[M];
		for(i = 0;i < M;i ++) {
			a[i] = sc.nextInt();
			b[i] = sc.nextInt();
		}
		for(i = 1;i <= N;i ++) {
			for(int k = 0;k < M;k ++) {
				if(i == a[k]) cnt++;
				if(i == b[k]) cnt++;
			}
			System.out.println(cnt);
			cnt = 0;
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		int i, cnt = 0;;
		int[] a = new int[M];
		int[] b = new int[M];
		for(i = 0;i < M;i ++) {
			a[i] = sc.nextInt();
			b[i] = sc.nextInt();
		}
		for(i = 1;i <= N;i ++) {
			for(int k = 0;k < M;k ++) {
				if(i == a[k]) cnt++;
				if(i == b[k]) cnt++;
			}
			System.out.println(cnt);
			cnt = 0;
		}
	} 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 i i cnt = 0; cnt 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] = sc.nextInt();
			b[i] = sc.nextInt();
		} i = 0; i = 0 i 0 i < M i M i ++ i ++ i {
			a[i] = sc.nextInt();
			b[i] = sc.nextInt();
		} {
			a[i] = sc.nextInt();
			b[i] = sc.nextInt();
		} a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc b[i] = sc.nextInt() b[i] b i sc.nextInt() sc.nextInt sc for(i = 1;i <= N;i ++) {
			for(int k = 0;k < M;k ++) {
				if(i == a[k]) cnt++;
				if(i == b[k]) cnt++;
			}
			System.out.println(cnt);
			cnt = 0;
		} i = 1; i = 1 i 1 i <= N i N i ++ i ++ i {
			for(int k = 0;k < M;k ++) {
				if(i == a[k]) cnt++;
				if(i == b[k]) cnt++;
			}
			System.out.println(cnt);
			cnt = 0;
		} {
			for(int k = 0;k < M;k ++) {
				if(i == a[k]) cnt++;
				if(i == b[k]) cnt++;
			}
			System.out.println(cnt);
			cnt = 0;
		} for(int k = 0;k < M;k ++) {
				if(i == a[k]) cnt++;
				if(i == b[k]) cnt++;
			} int k = 0; int k = 0; k 0 k < M k M k ++ k ++ k {
				if(i == a[k]) cnt++;
				if(i == b[k]) cnt++;
			} {
				if(i == a[k]) cnt++;
				if(i == b[k]) cnt++;
			} if(i == a[k]) cnt++; i == a[k] i a[k] a k cnt++ cnt if(i == b[k]) cnt++; i == b[k] i b[k] b k cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt cnt = 0 cnt 0 String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		int i, cnt = 0;;
		int[] a = new int[M];
		int[] b = new int[M];
		for(i = 0;i < M;i ++) {
			a[i] = sc.nextInt();
			b[i] = sc.nextInt();
		}
		for(i = 1;i <= N;i ++) {
			for(int k = 0;k < M;k ++) {
				if(i == a[k]) cnt++;
				if(i == b[k]) cnt++;
			}
			System.out.println(cnt);
			cnt = 0;
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		int i, cnt = 0;;
		int[] a = new int[M];
		int[] b = new int[M];
		for(i = 0;i < M;i ++) {
			a[i] = sc.nextInt();
			b[i] = sc.nextInt();
		}
		for(i = 1;i <= N;i ++) {
			for(int k = 0;k < M;k ++) {
				if(i == a[k]) cnt++;
				if(i == b[k]) cnt++;
			}
			System.out.println(cnt);
			cnt = 0;
		}
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		int i, cnt = 0;;
		int[] a = new int[M];
		int[] b = new int[M];
		for(i = 0;i < M;i ++) {
			a[i] = sc.nextInt();
			b[i] = sc.nextInt();
		}
		for(i = 1;i <= N;i ++) {
			for(int k = 0;k < M;k ++) {
				if(i == a[k]) cnt++;
				if(i == b[k]) cnt++;
			}
			System.out.println(cnt);
			cnt = 0;
		}
	}
}