import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader input =new BufferedReader (new InputStreamReader (System.in));
		String str = input.readLine( );
		String[] strlist = str.split(" ");
		int n = Integer.parseInt(strlist[0]);
		int m = Integer.parseInt(strlist[1]);
		int[] list = new int[n];
		Arrays.fill(list, 0);

		int a,b;

		for(int i=0; i<m; i++){
			str = input.readLine();
			strlist = str.split(" ");
			a = Integer.parseInt(strlist[0]);
			b = Integer.parseInt(strlist[1]);
			list[a-1]++;
			list[b-1]++;
		}

		for(int i=0; i<n; i++){
			System.out.println(list[i]);
		}

	}


} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader input =new BufferedReader (new InputStreamReader (System.in));
		String str = input.readLine( );
		String[] strlist = str.split(" ");
		int n = Integer.parseInt(strlist[0]);
		int m = Integer.parseInt(strlist[1]);
		int[] list = new int[n];
		Arrays.fill(list, 0);

		int a,b;

		for(int i=0; i<m; i++){
			str = input.readLine();
			strlist = str.split(" ");
			a = Integer.parseInt(strlist[0]);
			b = Integer.parseInt(strlist[1]);
			list[a-1]++;
			list[b-1]++;
		}

		for(int i=0; i<n; i++){
			System.out.println(list[i]);
		}

	}


} Main public static void main(String[] args) throws IOException {
		BufferedReader input =new BufferedReader (new InputStreamReader (System.in));
		String str = input.readLine( );
		String[] strlist = str.split(" ");
		int n = Integer.parseInt(strlist[0]);
		int m = Integer.parseInt(strlist[1]);
		int[] list = new int[n];
		Arrays.fill(list, 0);

		int a,b;

		for(int i=0; i<m; i++){
			str = input.readLine();
			strlist = str.split(" ");
			a = Integer.parseInt(strlist[0]);
			b = Integer.parseInt(strlist[1]);
			list[a-1]++;
			list[b-1]++;
		}

		for(int i=0; i<n; i++){
			System.out.println(list[i]);
		}

	} main {
		BufferedReader input =new BufferedReader (new InputStreamReader (System.in));
		String str = input.readLine( );
		String[] strlist = str.split(" ");
		int n = Integer.parseInt(strlist[0]);
		int m = Integer.parseInt(strlist[1]);
		int[] list = new int[n];
		Arrays.fill(list, 0);

		int a,b;

		for(int i=0; i<m; i++){
			str = input.readLine();
			strlist = str.split(" ");
			a = Integer.parseInt(strlist[0]);
			b = Integer.parseInt(strlist[1]);
			list[a-1]++;
			list[b-1]++;
		}

		for(int i=0; i<n; i++){
			System.out.println(list[i]);
		}

	} BufferedReader input =new BufferedReader (new InputStreamReader (System.in)); input new BufferedReader (new InputStreamReader (System.in)) String str = input.readLine( ); str input.readLine( ) input.readLine input String[] strlist = str.split(" "); strlist str.split(" ") str.split str " " int n = Integer.parseInt(strlist[0]); n Integer.parseInt(strlist[0]) Integer.parseInt Integer strlist[0] strlist 0 int m = Integer.parseInt(strlist[1]); m Integer.parseInt(strlist[1]) Integer.parseInt Integer strlist[1] strlist 1 int[] list = new int[n]; list new int[n] n Arrays.fill(list, 0) Arrays.fill Arrays list 0 int a a b; b for(int i=0; i<m; i++){
			str = input.readLine();
			strlist = str.split(" ");
			a = Integer.parseInt(strlist[0]);
			b = Integer.parseInt(strlist[1]);
			list[a-1]++;
			list[b-1]++;
		} int i=0; int i=0; i 0 i<m i m i++ i++ i {
			str = input.readLine();
			strlist = str.split(" ");
			a = Integer.parseInt(strlist[0]);
			b = Integer.parseInt(strlist[1]);
			list[a-1]++;
			list[b-1]++;
		} {
			str = input.readLine();
			strlist = str.split(" ");
			a = Integer.parseInt(strlist[0]);
			b = Integer.parseInt(strlist[1]);
			list[a-1]++;
			list[b-1]++;
		} str = input.readLine() str input.readLine() input.readLine input strlist = str.split(" ") strlist str.split(" ") str.split str " " a = Integer.parseInt(strlist[0]) a Integer.parseInt(strlist[0]) Integer.parseInt Integer strlist[0] strlist 0 b = Integer.parseInt(strlist[1]) b Integer.parseInt(strlist[1]) Integer.parseInt Integer strlist[1] strlist 1 list[a-1]++ list[a-1] list a-1 a 1 list[b-1]++ list[b-1] list b-1 b 1 for(int i=0; i<n; i++){
			System.out.println(list[i]);
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			System.out.println(list[i]);
		} {
			System.out.println(list[i]);
		} System.out.println(list[i]) System.out.println System.out System System.out list[i] list i String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader input =new BufferedReader (new InputStreamReader (System.in));
		String str = input.readLine( );
		String[] strlist = str.split(" ");
		int n = Integer.parseInt(strlist[0]);
		int m = Integer.parseInt(strlist[1]);
		int[] list = new int[n];
		Arrays.fill(list, 0);

		int a,b;

		for(int i=0; i<m; i++){
			str = input.readLine();
			strlist = str.split(" ");
			a = Integer.parseInt(strlist[0]);
			b = Integer.parseInt(strlist[1]);
			list[a-1]++;
			list[b-1]++;
		}

		for(int i=0; i<n; i++){
			System.out.println(list[i]);
		}

	}


} public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader input =new BufferedReader (new InputStreamReader (System.in));
		String str = input.readLine( );
		String[] strlist = str.split(" ");
		int n = Integer.parseInt(strlist[0]);
		int m = Integer.parseInt(strlist[1]);
		int[] list = new int[n];
		Arrays.fill(list, 0);

		int a,b;

		for(int i=0; i<m; i++){
			str = input.readLine();
			strlist = str.split(" ");
			a = Integer.parseInt(strlist[0]);
			b = Integer.parseInt(strlist[1]);
			list[a-1]++;
			list[b-1]++;
		}

		for(int i=0; i<n; i++){
			System.out.println(list[i]);
		}

	}


} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader input =new BufferedReader (new InputStreamReader (System.in));
		String str = input.readLine( );
		String[] strlist = str.split(" ");
		int n = Integer.parseInt(strlist[0]);
		int m = Integer.parseInt(strlist[1]);
		int[] list = new int[n];
		Arrays.fill(list, 0);

		int a,b;

		for(int i=0; i<m; i++){
			str = input.readLine();
			strlist = str.split(" ");
			a = Integer.parseInt(strlist[0]);
			b = Integer.parseInt(strlist[1]);
			list[a-1]++;
			list[b-1]++;
		}

		for(int i=0; i<n; i++){
			System.out.println(list[i]);
		}

	}


}
