import java.util.Scanner;

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