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 ans[] = new int[n+1];
		int data[] = new int[m*2];
		for(int i= 0;i < m*2;i++) {
			data[i] = sc.nextInt();
		}
		for(int i = 1;i <= n;i++) {
			for(int k = 0;k < m*2;k++) {
				if(data[k] == i)ans[i]++;
			}
		System.out.println(ans[i]);
		}
	}

} 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 ans[] = new int[n+1];
		int data[] = new int[m*2];
		for(int i= 0;i < m*2;i++) {
			data[i] = sc.nextInt();
		}
		for(int i = 1;i <= n;i++) {
			for(int k = 0;k < m*2;k++) {
				if(data[k] == i)ans[i]++;
			}
		System.out.println(ans[i]);
		}
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int ans[] = new int[n+1];
		int data[] = new int[m*2];
		for(int i= 0;i < m*2;i++) {
			data[i] = sc.nextInt();
		}
		for(int i = 1;i <= n;i++) {
			for(int k = 0;k < m*2;k++) {
				if(data[k] == i)ans[i]++;
			}
		System.out.println(ans[i]);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int ans[] = new int[n+1];
		int data[] = new int[m*2];
		for(int i= 0;i < m*2;i++) {
			data[i] = sc.nextInt();
		}
		for(int i = 1;i <= n;i++) {
			for(int k = 0;k < m*2;k++) {
				if(data[k] == i)ans[i]++;
			}
		System.out.println(ans[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 ans[] = new int[n+1]; ans new int[n+1] n+1 n 1 int data[] = new int[m*2]; data new int[m*2] m*2 m 2 for(int i= 0;i < m*2;i++) {
			data[i] = sc.nextInt();
		} int i= 0; int i= 0; i 0 i < m*2 i m*2 m 2 i++ i++ i {
			data[i] = sc.nextInt();
		} {
			data[i] = sc.nextInt();
		} data[i] = sc.nextInt() data[i] data i sc.nextInt() sc.nextInt sc for(int i = 1;i <= n;i++) {
			for(int k = 0;k < m*2;k++) {
				if(data[k] == i)ans[i]++;
			}
		System.out.println(ans[i]);
		} int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
			for(int k = 0;k < m*2;k++) {
				if(data[k] == i)ans[i]++;
			}
		System.out.println(ans[i]);
		} {
			for(int k = 0;k < m*2;k++) {
				if(data[k] == i)ans[i]++;
			}
		System.out.println(ans[i]);
		} for(int k = 0;k < m*2;k++) {
				if(data[k] == i)ans[i]++;
			} int k = 0; int k = 0; k 0 k < m*2 k m*2 m 2 k++ k++ k {
				if(data[k] == i)ans[i]++;
			} {
				if(data[k] == i)ans[i]++;
			} if(data[k] == i)ans[i]++; data[k] == i data[k] data k i ans[i]++ ans[i] ans i System.out.println(ans[i]) System.out.println System.out System System.out ans[i] ans i 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 ans[] = new int[n+1];
		int data[] = new int[m*2];
		for(int i= 0;i < m*2;i++) {
			data[i] = sc.nextInt();
		}
		for(int i = 1;i <= n;i++) {
			for(int k = 0;k < m*2;k++) {
				if(data[k] == i)ans[i]++;
			}
		System.out.println(ans[i]);
		}
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int ans[] = new int[n+1];
		int data[] = new int[m*2];
		for(int i= 0;i < m*2;i++) {
			data[i] = sc.nextInt();
		}
		for(int i = 1;i <= n;i++) {
			for(int k = 0;k < m*2;k++) {
				if(data[k] == i)ans[i]++;
			}
		System.out.println(ans[i]);
		}
	}

} 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 ans[] = new int[n+1];
		int data[] = new int[m*2];
		for(int i= 0;i < m*2;i++) {
			data[i] = sc.nextInt();
		}
		for(int i = 1;i <= n;i++) {
			for(int k = 0;k < m*2;k++) {
				if(data[k] == i)ans[i]++;
			}
		System.out.println(ans[i]);
		}
	}

}
