import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int ab;
		int[] road = new int[n+1];
		for(int i = 0;i<m*2;i++) {
			ab = sc.nextInt();
			road[ab-1] =road[ab-1]+1;
		}
		for(int i = 0;i < n;i++) {
			System.out.println(road[i]);
		}
	}

}
 import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int ab;
		int[] road = new int[n+1];
		for(int i = 0;i<m*2;i++) {
			ab = sc.nextInt();
			road[ab-1] =road[ab-1]+1;
		}
		for(int i = 0;i < n;i++) {
			System.out.println(road[i]);
		}
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int ab;
		int[] road = new int[n+1];
		for(int i = 0;i<m*2;i++) {
			ab = sc.nextInt();
			road[ab-1] =road[ab-1]+1;
		}
		for(int i = 0;i < n;i++) {
			System.out.println(road[i]);
		}
	} main {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int ab;
		int[] road = new int[n+1];
		for(int i = 0;i<m*2;i++) {
			ab = sc.nextInt();
			road[ab-1] =road[ab-1]+1;
		}
		for(int i = 0;i < n;i++) {
			System.out.println(road[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 ab; ab int[] road = new int[n+1]; road new int[n+1] n+1 n 1 for(int i = 0;i<m*2;i++) {
			ab = sc.nextInt();
			road[ab-1] =road[ab-1]+1;
		} int i = 0; int i = 0; i 0 i<m*2 i m*2 m 2 i++ i++ i {
			ab = sc.nextInt();
			road[ab-1] =road[ab-1]+1;
		} {
			ab = sc.nextInt();
			road[ab-1] =road[ab-1]+1;
		} ab = sc.nextInt() ab sc.nextInt() sc.nextInt sc road[ab-1] =road[ab-1]+1 road[ab-1] road ab-1 ab 1 road[ab-1]+1 road[ab-1] road ab-1 ab 1 1 for(int i = 0;i < n;i++) {
			System.out.println(road[i]);
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			System.out.println(road[i]);
		} {
			System.out.println(road[i]);
		} System.out.println(road[i]) System.out.println System.out System System.out road[i] road i String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int ab;
		int[] road = new int[n+1];
		for(int i = 0;i<m*2;i++) {
			ab = sc.nextInt();
			road[ab-1] =road[ab-1]+1;
		}
		for(int i = 0;i < n;i++) {
			System.out.println(road[i]);
		}
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int ab;
		int[] road = new int[n+1];
		for(int i = 0;i<m*2;i++) {
			ab = sc.nextInt();
			road[ab-1] =road[ab-1]+1;
		}
		for(int i = 0;i < n;i++) {
			System.out.println(road[i]);
		}
	}

} Main
import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int ab;
		int[] road = new int[n+1];
		for(int i = 0;i<m*2;i++) {
			ab = sc.nextInt();
			road[ab-1] =road[ab-1]+1;
		}
		for(int i = 0;i < n;i++) {
			System.out.println(road[i]);
		}
	}

}

