import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String args[]){

		Scanner cin = new Scanner(System.in);

		int N = cin.nextInt();
		int M = cin.nextInt();
		int road[] = new int[N];
		Arrays.fill(road, 0);
		int tmp1,tmp2;
		for(int i=0;i<M;i++){
			tmp1 = cin.nextInt();
			tmp2 = cin.nextInt();
			road[tmp1-1] += 1;
			road[tmp2-1] += 1;
		}
		cin.close();

		for(int j=0;j<N;j++){
			System.out.println(road[j]);
		}
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String args[]){

		Scanner cin = new Scanner(System.in);

		int N = cin.nextInt();
		int M = cin.nextInt();
		int road[] = new int[N];
		Arrays.fill(road, 0);
		int tmp1,tmp2;
		for(int i=0;i<M;i++){
			tmp1 = cin.nextInt();
			tmp2 = cin.nextInt();
			road[tmp1-1] += 1;
			road[tmp2-1] += 1;
		}
		cin.close();

		for(int j=0;j<N;j++){
			System.out.println(road[j]);
		}
	}
} Main public static void main(String args[]){

		Scanner cin = new Scanner(System.in);

		int N = cin.nextInt();
		int M = cin.nextInt();
		int road[] = new int[N];
		Arrays.fill(road, 0);
		int tmp1,tmp2;
		for(int i=0;i<M;i++){
			tmp1 = cin.nextInt();
			tmp2 = cin.nextInt();
			road[tmp1-1] += 1;
			road[tmp2-1] += 1;
		}
		cin.close();

		for(int j=0;j<N;j++){
			System.out.println(road[j]);
		}
	} main {

		Scanner cin = new Scanner(System.in);

		int N = cin.nextInt();
		int M = cin.nextInt();
		int road[] = new int[N];
		Arrays.fill(road, 0);
		int tmp1,tmp2;
		for(int i=0;i<M;i++){
			tmp1 = cin.nextInt();
			tmp2 = cin.nextInt();
			road[tmp1-1] += 1;
			road[tmp2-1] += 1;
		}
		cin.close();

		for(int j=0;j<N;j++){
			System.out.println(road[j]);
		}
	} Scanner cin = new Scanner(System.in); cin new Scanner(System.in) int N = cin.nextInt(); N cin.nextInt() cin.nextInt cin int M = cin.nextInt(); M cin.nextInt() cin.nextInt cin int road[] = new int[N]; road new int[N] N Arrays.fill(road, 0) Arrays.fill Arrays road 0 int tmp1 tmp1 tmp2; tmp2 for(int i=0;i<M;i++){
			tmp1 = cin.nextInt();
			tmp2 = cin.nextInt();
			road[tmp1-1] += 1;
			road[tmp2-1] += 1;
		} int i=0; int i=0; i 0 i<M i M i++ i++ i {
			tmp1 = cin.nextInt();
			tmp2 = cin.nextInt();
			road[tmp1-1] += 1;
			road[tmp2-1] += 1;
		} {
			tmp1 = cin.nextInt();
			tmp2 = cin.nextInt();
			road[tmp1-1] += 1;
			road[tmp2-1] += 1;
		} tmp1 = cin.nextInt() tmp1 cin.nextInt() cin.nextInt cin tmp2 = cin.nextInt() tmp2 cin.nextInt() cin.nextInt cin road[tmp1-1] += 1 road[tmp1-1] road tmp1-1 tmp1 1 1 road[tmp2-1] += 1 road[tmp2-1] road tmp2-1 tmp2 1 1 cin.close() cin.close cin for(int j=0;j<N;j++){
			System.out.println(road[j]);
		} int j=0; int j=0; j 0 j<N j N j++ j++ j {
			System.out.println(road[j]);
		} {
			System.out.println(road[j]);
		} System.out.println(road[j]) System.out.println System.out System System.out road[j] road j String args[] args public class Main {
	public static void main(String args[]){

		Scanner cin = new Scanner(System.in);

		int N = cin.nextInt();
		int M = cin.nextInt();
		int road[] = new int[N];
		Arrays.fill(road, 0);
		int tmp1,tmp2;
		for(int i=0;i<M;i++){
			tmp1 = cin.nextInt();
			tmp2 = cin.nextInt();
			road[tmp1-1] += 1;
			road[tmp2-1] += 1;
		}
		cin.close();

		for(int j=0;j<N;j++){
			System.out.println(road[j]);
		}
	}
} public class Main {
	public static void main(String args[]){

		Scanner cin = new Scanner(System.in);

		int N = cin.nextInt();
		int M = cin.nextInt();
		int road[] = new int[N];
		Arrays.fill(road, 0);
		int tmp1,tmp2;
		for(int i=0;i<M;i++){
			tmp1 = cin.nextInt();
			tmp2 = cin.nextInt();
			road[tmp1-1] += 1;
			road[tmp2-1] += 1;
		}
		cin.close();

		for(int j=0;j<N;j++){
			System.out.println(road[j]);
		}
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String args[]){

		Scanner cin = new Scanner(System.in);

		int N = cin.nextInt();
		int M = cin.nextInt();
		int road[] = new int[N];
		Arrays.fill(road, 0);
		int tmp1,tmp2;
		for(int i=0;i<M;i++){
			tmp1 = cin.nextInt();
			tmp2 = cin.nextInt();
			road[tmp1-1] += 1;
			road[tmp2-1] += 1;
		}
		cin.close();

		for(int j=0;j<N;j++){
			System.out.println(road[j]);
		}
	}
}
