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 d[];
		d = new int[100]; 
		for(int i=0;i<m;i++)
		{
			int a = sc.nextInt();
			int b = sc.nextInt();
			d[a]++;
			d[b]++;
		}
		for(int i=1;i<=n;i++)
			System.out.println(d[i]);
	}
} 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 d[];
		d = new int[100]; 
		for(int i=0;i<m;i++)
		{
			int a = sc.nextInt();
			int b = sc.nextInt();
			d[a]++;
			d[b]++;
		}
		for(int i=1;i<=n;i++)
			System.out.println(d[i]);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int d[];
		d = new int[100]; 
		for(int i=0;i<m;i++)
		{
			int a = sc.nextInt();
			int b = sc.nextInt();
			d[a]++;
			d[b]++;
		}
		for(int i=1;i<=n;i++)
			System.out.println(d[i]);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int d[];
		d = new int[100]; 
		for(int i=0;i<m;i++)
		{
			int a = sc.nextInt();
			int b = sc.nextInt();
			d[a]++;
			d[b]++;
		}
		for(int i=1;i<=n;i++)
			System.out.println(d[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 d[]; d d = new int[100] d new int[100] 100 for(int i=0;i<m;i++)
		{
			int a = sc.nextInt();
			int b = sc.nextInt();
			d[a]++;
			d[b]++;
		} int i=0; int i=0; i 0 i<m i m i++ i++ i {
			int a = sc.nextInt();
			int b = sc.nextInt();
			d[a]++;
			d[b]++;
		} {
			int a = sc.nextInt();
			int b = sc.nextInt();
			d[a]++;
			d[b]++;
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc d[a]++ d[a] d a d[b]++ d[b] d b for(int i=1;i<=n;i++)
			System.out.println(d[i]); int i=1; int i=1; i 1 i<=n i n i++ i++ i System.out.println(d[i]); System.out.println(d[i]) System.out.println System.out System System.out d[i] d i 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 d[];
		d = new int[100]; 
		for(int i=0;i<m;i++)
		{
			int a = sc.nextInt();
			int b = sc.nextInt();
			d[a]++;
			d[b]++;
		}
		for(int i=1;i<=n;i++)
			System.out.println(d[i]);
	}
} public class Main {

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int d[];
		d = new int[100]; 
		for(int i=0;i<m;i++)
		{
			int a = sc.nextInt();
			int b = sc.nextInt();
			d[a]++;
			d[b]++;
		}
		for(int i=1;i<=n;i++)
			System.out.println(d[i]);
	}
} 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 d[];
		d = new int[100]; 
		for(int i=0;i<m;i++)
		{
			int a = sc.nextInt();
			int b = sc.nextInt();
			d[a]++;
			d[b]++;
		}
		for(int i=1;i<=n;i++)
			System.out.println(d[i]);
	}
}
