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


public class Main{
	public static void main(String[]args)throws IOException{
	
		BufferedReader br=
				new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		String[] str1=str.split(" ",0);
		int n1=Integer.parseInt(str1[0]);
		int n2=Integer.parseInt(str1[1]);
		int n3=0;
		int n4=0;
		int ans[]=new int[n1];

		for(int i=0;i<n2;i++){
			String str2=br.readLine();
			String[] str3=str2.split(" ",0);
			n3=Integer.parseInt(str3[0]);
			n4=Integer.parseInt(str3[1]);
		ans[n3-1]++;
		ans[n4-1]++;
		}
	 for(int i=0;i<n1;i++){
	System.out.println(ans[i]);
	 }
	}
}
		
 import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main{
	public static void main(String[]args)throws IOException{
	
		BufferedReader br=
				new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		String[] str1=str.split(" ",0);
		int n1=Integer.parseInt(str1[0]);
		int n2=Integer.parseInt(str1[1]);
		int n3=0;
		int n4=0;
		int ans[]=new int[n1];

		for(int i=0;i<n2;i++){
			String str2=br.readLine();
			String[] str3=str2.split(" ",0);
			n3=Integer.parseInt(str3[0]);
			n4=Integer.parseInt(str3[1]);
		ans[n3-1]++;
		ans[n4-1]++;
		}
	 for(int i=0;i<n1;i++){
	System.out.println(ans[i]);
	 }
	}
} Main public static void main(String[]args)throws IOException{
	
		BufferedReader br=
				new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		String[] str1=str.split(" ",0);
		int n1=Integer.parseInt(str1[0]);
		int n2=Integer.parseInt(str1[1]);
		int n3=0;
		int n4=0;
		int ans[]=new int[n1];

		for(int i=0;i<n2;i++){
			String str2=br.readLine();
			String[] str3=str2.split(" ",0);
			n3=Integer.parseInt(str3[0]);
			n4=Integer.parseInt(str3[1]);
		ans[n3-1]++;
		ans[n4-1]++;
		}
	 for(int i=0;i<n1;i++){
	System.out.println(ans[i]);
	 }
	} main {
	
		BufferedReader br=
				new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		String[] str1=str.split(" ",0);
		int n1=Integer.parseInt(str1[0]);
		int n2=Integer.parseInt(str1[1]);
		int n3=0;
		int n4=0;
		int ans[]=new int[n1];

		for(int i=0;i<n2;i++){
			String str2=br.readLine();
			String[] str3=str2.split(" ",0);
			n3=Integer.parseInt(str3[0]);
			n4=Integer.parseInt(str3[1]);
		ans[n3-1]++;
		ans[n4-1]++;
		}
	 for(int i=0;i<n1;i++){
	System.out.println(ans[i]);
	 }
	} BufferedReader br=
				new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str=br.readLine(); str br.readLine() br.readLine br String[] str1=str.split(" ",0); str1 str.split(" ",0) str.split str " " 0 int n1=Integer.parseInt(str1[0]); n1 Integer.parseInt(str1[0]) Integer.parseInt Integer str1[0] str1 0 int n2=Integer.parseInt(str1[1]); n2 Integer.parseInt(str1[1]) Integer.parseInt Integer str1[1] str1 1 int n3=0; n3 0 int n4=0; n4 0 int ans[]=new int[n1]; ans new int[n1] n1 for(int i=0;i<n2;i++){
			String str2=br.readLine();
			String[] str3=str2.split(" ",0);
			n3=Integer.parseInt(str3[0]);
			n4=Integer.parseInt(str3[1]);
		ans[n3-1]++;
		ans[n4-1]++;
		} int i=0; int i=0; i 0 i<n2 i n2 i++ i++ i {
			String str2=br.readLine();
			String[] str3=str2.split(" ",0);
			n3=Integer.parseInt(str3[0]);
			n4=Integer.parseInt(str3[1]);
		ans[n3-1]++;
		ans[n4-1]++;
		} {
			String str2=br.readLine();
			String[] str3=str2.split(" ",0);
			n3=Integer.parseInt(str3[0]);
			n4=Integer.parseInt(str3[1]);
		ans[n3-1]++;
		ans[n4-1]++;
		} String str2=br.readLine(); str2 br.readLine() br.readLine br String[] str3=str2.split(" ",0); str3 str2.split(" ",0) str2.split str2 " " 0 n3=Integer.parseInt(str3[0]) n3 Integer.parseInt(str3[0]) Integer.parseInt Integer str3[0] str3 0 n4=Integer.parseInt(str3[1]) n4 Integer.parseInt(str3[1]) Integer.parseInt Integer str3[1] str3 1 ans[n3-1]++ ans[n3-1] ans n3-1 n3 1 ans[n4-1]++ ans[n4-1] ans n4-1 n4 1 for(int i=0;i<n1;i++){
	System.out.println(ans[i]);
	 } int i=0; int i=0; i 0 i<n1 i n1 i++ i++ i {
	System.out.println(ans[i]);
	 } {
	System.out.println(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)throws IOException{
	
		BufferedReader br=
				new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		String[] str1=str.split(" ",0);
		int n1=Integer.parseInt(str1[0]);
		int n2=Integer.parseInt(str1[1]);
		int n3=0;
		int n4=0;
		int ans[]=new int[n1];

		for(int i=0;i<n2;i++){
			String str2=br.readLine();
			String[] str3=str2.split(" ",0);
			n3=Integer.parseInt(str3[0]);
			n4=Integer.parseInt(str3[1]);
		ans[n3-1]++;
		ans[n4-1]++;
		}
	 for(int i=0;i<n1;i++){
	System.out.println(ans[i]);
	 }
	}
} public class Main{
	public static void main(String[]args)throws IOException{
	
		BufferedReader br=
				new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		String[] str1=str.split(" ",0);
		int n1=Integer.parseInt(str1[0]);
		int n2=Integer.parseInt(str1[1]);
		int n3=0;
		int n4=0;
		int ans[]=new int[n1];

		for(int i=0;i<n2;i++){
			String str2=br.readLine();
			String[] str3=str2.split(" ",0);
			n3=Integer.parseInt(str3[0]);
			n4=Integer.parseInt(str3[1]);
		ans[n3-1]++;
		ans[n4-1]++;
		}
	 for(int i=0;i<n1;i++){
	System.out.println(ans[i]);
	 }
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


public class Main{
	public static void main(String[]args)throws IOException{
	
		BufferedReader br=
				new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		String[] str1=str.split(" ",0);
		int n1=Integer.parseInt(str1[0]);
		int n2=Integer.parseInt(str1[1]);
		int n3=0;
		int n4=0;
		int ans[]=new int[n1];

		for(int i=0;i<n2;i++){
			String str2=br.readLine();
			String[] str3=str2.split(" ",0);
			n3=Integer.parseInt(str3[0]);
			n4=Integer.parseInt(str3[1]);
		ans[n3-1]++;
		ans[n4-1]++;
		}
	 for(int i=0;i<n1;i++){
	System.out.println(ans[i]);
	 }
	}
}
		

