import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		
		int[] f = new int[n];
		for(int i =  0; i < n; i++) {
			f[i] = 0;
		}
		
		int a, b;
		for(int i = 0; i < m; i++) {
			a = sc.nextInt();
			b = sc.nextInt();
			
			f[a-1]++;
			f[b-1]++;
		}
		
		for(int x : f) {
			System.out.println(x);
		}

	}

} import java.util.Scanner; Scanner 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[] f = new int[n];
		for(int i =  0; i < n; i++) {
			f[i] = 0;
		}
		
		int a, b;
		for(int i = 0; i < m; i++) {
			a = sc.nextInt();
			b = sc.nextInt();
			
			f[a-1]++;
			f[b-1]++;
		}
		
		for(int x : f) {
			System.out.println(x);
		}

	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		
		int[] f = new int[n];
		for(int i =  0; i < n; i++) {
			f[i] = 0;
		}
		
		int a, b;
		for(int i = 0; i < m; i++) {
			a = sc.nextInt();
			b = sc.nextInt();
			
			f[a-1]++;
			f[b-1]++;
		}
		
		for(int x : f) {
			System.out.println(x);
		}

	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		
		int[] f = new int[n];
		for(int i =  0; i < n; i++) {
			f[i] = 0;
		}
		
		int a, b;
		for(int i = 0; i < m; i++) {
			a = sc.nextInt();
			b = sc.nextInt();
			
			f[a-1]++;
			f[b-1]++;
		}
		
		for(int x : f) {
			System.out.println(x);
		}

	} 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[] f = new int[n]; f new int[n] n for(int i =  0; i < n; i++) {
			f[i] = 0;
		} int i =  0; int i =  0; i 0 i < n i n i++ i++ i {
			f[i] = 0;
		} {
			f[i] = 0;
		} f[i] = 0 f[i] f i 0 int a a b; b for(int i = 0; i < m; i++) {
			a = sc.nextInt();
			b = sc.nextInt();
			
			f[a-1]++;
			f[b-1]++;
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			a = sc.nextInt();
			b = sc.nextInt();
			
			f[a-1]++;
			f[b-1]++;
		} {
			a = sc.nextInt();
			b = sc.nextInt();
			
			f[a-1]++;
			f[b-1]++;
		} a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc f[a-1]++ f[a-1] f a-1 a 1 f[b-1]++ f[b-1] f b-1 b 1 for(int x : f) {
			System.out.println(x);
		} int x f {
			System.out.println(x);
		} {
			System.out.println(x);
		} System.out.println(x) System.out.println System.out System System.out x 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[] f = new int[n];
		for(int i =  0; i < n; i++) {
			f[i] = 0;
		}
		
		int a, b;
		for(int i = 0; i < m; i++) {
			a = sc.nextInt();
			b = sc.nextInt();
			
			f[a-1]++;
			f[b-1]++;
		}
		
		for(int x : f) {
			System.out.println(x);
		}

	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		
		int[] f = new int[n];
		for(int i =  0; i < n; i++) {
			f[i] = 0;
		}
		
		int a, b;
		for(int i = 0; i < m; i++) {
			a = sc.nextInt();
			b = sc.nextInt();
			
			f[a-1]++;
			f[b-1]++;
		}
		
		for(int x : f) {
			System.out.println(x);
		}

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		
		int[] f = new int[n];
		for(int i =  0; i < n; i++) {
			f[i] = 0;
		}
		
		int a, b;
		for(int i = 0; i < m; i++) {
			a = sc.nextInt();
			b = sc.nextInt();
			
			f[a-1]++;
			f[b-1]++;
		}
		
		for(int x : f) {
			System.out.println(x);
		}

	}

}
