public class Main {
	
	public static void main(String[] args){
		java.util.Scanner scan = new java.util.Scanner(System.in);
		String in = scan.nextLine();
		String[] ins = in.split(" ");
		int n = Integer.parseInt(ins[0]);
		int m = Integer.parseInt(ins[1]);
		int[] count = new int[n];
		for(int i=0; i<n; i++){
			count[i] = 0;
		}
		for(int i=0; i<m; i++){
			String ab = scan.nextLine();
			String[] tmp = ab.split(" ");
			int a = Integer.parseInt(tmp[0]);
			int b = Integer.parseInt(tmp[1]);
			count[a-1]++;
			count[b-1]++;
		}
		for(int i=0; i<n; i++){
			System.out.println(count[i]);
		}
	}
} public class Main {
	
	public static void main(String[] args){
		java.util.Scanner scan = new java.util.Scanner(System.in);
		String in = scan.nextLine();
		String[] ins = in.split(" ");
		int n = Integer.parseInt(ins[0]);
		int m = Integer.parseInt(ins[1]);
		int[] count = new int[n];
		for(int i=0; i<n; i++){
			count[i] = 0;
		}
		for(int i=0; i<m; i++){
			String ab = scan.nextLine();
			String[] tmp = ab.split(" ");
			int a = Integer.parseInt(tmp[0]);
			int b = Integer.parseInt(tmp[1]);
			count[a-1]++;
			count[b-1]++;
		}
		for(int i=0; i<n; i++){
			System.out.println(count[i]);
		}
	}
} Main public static void main(String[] args){
		java.util.Scanner scan = new java.util.Scanner(System.in);
		String in = scan.nextLine();
		String[] ins = in.split(" ");
		int n = Integer.parseInt(ins[0]);
		int m = Integer.parseInt(ins[1]);
		int[] count = new int[n];
		for(int i=0; i<n; i++){
			count[i] = 0;
		}
		for(int i=0; i<m; i++){
			String ab = scan.nextLine();
			String[] tmp = ab.split(" ");
			int a = Integer.parseInt(tmp[0]);
			int b = Integer.parseInt(tmp[1]);
			count[a-1]++;
			count[b-1]++;
		}
		for(int i=0; i<n; i++){
			System.out.println(count[i]);
		}
	} main {
		java.util.Scanner scan = new java.util.Scanner(System.in);
		String in = scan.nextLine();
		String[] ins = in.split(" ");
		int n = Integer.parseInt(ins[0]);
		int m = Integer.parseInt(ins[1]);
		int[] count = new int[n];
		for(int i=0; i<n; i++){
			count[i] = 0;
		}
		for(int i=0; i<m; i++){
			String ab = scan.nextLine();
			String[] tmp = ab.split(" ");
			int a = Integer.parseInt(tmp[0]);
			int b = Integer.parseInt(tmp[1]);
			count[a-1]++;
			count[b-1]++;
		}
		for(int i=0; i<n; i++){
			System.out.println(count[i]);
		}
	} java.util.Scanner scan = new java.util.Scanner(System.in); scan new java.util.Scanner(System.in) String in = scan.nextLine(); in scan.nextLine() scan.nextLine scan String[] ins = in.split(" "); ins in.split(" ") in.split in " " int n = Integer.parseInt(ins[0]); n Integer.parseInt(ins[0]) Integer.parseInt Integer ins[0] ins 0 int m = Integer.parseInt(ins[1]); m Integer.parseInt(ins[1]) Integer.parseInt Integer ins[1] ins 1 int[] count = new int[n]; count new int[n] n for(int i=0; i<n; i++){
			count[i] = 0;
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			count[i] = 0;
		} {
			count[i] = 0;
		} count[i] = 0 count[i] count i 0 for(int i=0; i<m; i++){
			String ab = scan.nextLine();
			String[] tmp = ab.split(" ");
			int a = Integer.parseInt(tmp[0]);
			int b = Integer.parseInt(tmp[1]);
			count[a-1]++;
			count[b-1]++;
		} int i=0; int i=0; i 0 i<m i m i++ i++ i {
			String ab = scan.nextLine();
			String[] tmp = ab.split(" ");
			int a = Integer.parseInt(tmp[0]);
			int b = Integer.parseInt(tmp[1]);
			count[a-1]++;
			count[b-1]++;
		} {
			String ab = scan.nextLine();
			String[] tmp = ab.split(" ");
			int a = Integer.parseInt(tmp[0]);
			int b = Integer.parseInt(tmp[1]);
			count[a-1]++;
			count[b-1]++;
		} String ab = scan.nextLine(); ab scan.nextLine() scan.nextLine scan String[] tmp = ab.split(" "); tmp ab.split(" ") ab.split ab " " int a = Integer.parseInt(tmp[0]); a Integer.parseInt(tmp[0]) Integer.parseInt Integer tmp[0] tmp 0 int b = Integer.parseInt(tmp[1]); b Integer.parseInt(tmp[1]) Integer.parseInt Integer tmp[1] tmp 1 count[a-1]++ count[a-1] count a-1 a 1 count[b-1]++ count[b-1] count b-1 b 1 for(int i=0; i<n; i++){
			System.out.println(count[i]);
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			System.out.println(count[i]);
		} {
			System.out.println(count[i]);
		} System.out.println(count[i]) System.out.println System.out System System.out count[i] count i String[] args args public class Main {
	
	public static void main(String[] args){
		java.util.Scanner scan = new java.util.Scanner(System.in);
		String in = scan.nextLine();
		String[] ins = in.split(" ");
		int n = Integer.parseInt(ins[0]);
		int m = Integer.parseInt(ins[1]);
		int[] count = new int[n];
		for(int i=0; i<n; i++){
			count[i] = 0;
		}
		for(int i=0; i<m; i++){
			String ab = scan.nextLine();
			String[] tmp = ab.split(" ");
			int a = Integer.parseInt(tmp[0]);
			int b = Integer.parseInt(tmp[1]);
			count[a-1]++;
			count[b-1]++;
		}
		for(int i=0; i<n; i++){
			System.out.println(count[i]);
		}
	}
} public class Main {
	
	public static void main(String[] args){
		java.util.Scanner scan = new java.util.Scanner(System.in);
		String in = scan.nextLine();
		String[] ins = in.split(" ");
		int n = Integer.parseInt(ins[0]);
		int m = Integer.parseInt(ins[1]);
		int[] count = new int[n];
		for(int i=0; i<n; i++){
			count[i] = 0;
		}
		for(int i=0; i<m; i++){
			String ab = scan.nextLine();
			String[] tmp = ab.split(" ");
			int a = Integer.parseInt(tmp[0]);
			int b = Integer.parseInt(tmp[1]);
			count[a-1]++;
			count[b-1]++;
		}
		for(int i=0; i<n; i++){
			System.out.println(count[i]);
		}
	}
} Main
public class Main {
	
	public static void main(String[] args){
		java.util.Scanner scan = new java.util.Scanner(System.in);
		String in = scan.nextLine();
		String[] ins = in.split(" ");
		int n = Integer.parseInt(ins[0]);
		int m = Integer.parseInt(ins[1]);
		int[] count = new int[n];
		for(int i=0; i<n; i++){
			count[i] = 0;
		}
		for(int i=0; i<m; i++){
			String ab = scan.nextLine();
			String[] tmp = ab.split(" ");
			int a = Integer.parseInt(tmp[0]);
			int b = Integer.parseInt(tmp[1]);
			count[a-1]++;
			count[b-1]++;
		}
		for(int i=0; i<n; i++){
			System.out.println(count[i]);
		}
	}
}