import java.io.PrintStream;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Map;
import java.util.Queue;
import java.util.Scanner;
import java.util.Set;

public class Main {
	static boolean debug = true;
	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		// write here
		int N=sc.nextInt();
		int M=sc.nextInt();
		int [] map=new int[N+1];
		for(int i=0;i<M;i++){
			map[sc.nextInt()]++;
			map[sc.nextInt()]++;
		}
		for(int i=1;i<map.length;i++)
			System.out.println(map[i]);
		
	}

	private static void print(String string) {
		// TODO Auto-generated method stub
		if (debug)
			System.out.println(string);
	}

	private static void print(int[] data) {
		if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		}
	}

	private static void print(String[] data) {
		if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		}
	}

	private static void print(char[] data) {
		if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		}
	}

	private static void print(double[] data) {
		if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		}
	}

	private static void print(int[][] data) {

		if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i]);
				}
				System.out.println();
			}
		}
	}

	private static void print(char[][] data) {

		if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			}
		}
	}

	private static void print(String[][] data) {

		if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			}
		}
	}

	private static void print(double[][] data) {

		if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			}
		}
	}

	public static void inPutData(char[][] c) {
		for (int i = 0; i < c.length; i++) {
			c[i] = sc.nextLine().toCharArray();
		}
	}

} import java.io.PrintStream; PrintStream java.io import java.util.HashMap; HashMap java.util import java.util.HashSet; HashSet java.util import java.util.LinkedList; LinkedList java.util import java.util.Map; Map java.util import java.util.Queue; Queue java.util import java.util.Scanner; Scanner java.util import java.util.Set; Set java.util public class Main {
	static boolean debug = true;
	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		// write here
		int N=sc.nextInt();
		int M=sc.nextInt();
		int [] map=new int[N+1];
		for(int i=0;i<M;i++){
			map[sc.nextInt()]++;
			map[sc.nextInt()]++;
		}
		for(int i=1;i<map.length;i++)
			System.out.println(map[i]);
		
	}

	private static void print(String string) {
		// TODO Auto-generated method stub
		if (debug)
			System.out.println(string);
	}

	private static void print(int[] data) {
		if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		}
	}

	private static void print(String[] data) {
		if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		}
	}

	private static void print(char[] data) {
		if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		}
	}

	private static void print(double[] data) {
		if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		}
	}

	private static void print(int[][] data) {

		if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i]);
				}
				System.out.println();
			}
		}
	}

	private static void print(char[][] data) {

		if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			}
		}
	}

	private static void print(String[][] data) {

		if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			}
		}
	}

	private static void print(double[][] data) {

		if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			}
		}
	}

	public static void inPutData(char[][] c) {
		for (int i = 0; i < c.length; i++) {
			c[i] = sc.nextLine().toCharArray();
		}
	}

} Main static boolean debug = true; debug true static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args) {
		// write here
		int N=sc.nextInt();
		int M=sc.nextInt();
		int [] map=new int[N+1];
		for(int i=0;i<M;i++){
			map[sc.nextInt()]++;
			map[sc.nextInt()]++;
		}
		for(int i=1;i<map.length;i++)
			System.out.println(map[i]);
		
	} main {
		// write here
		int N=sc.nextInt();
		int M=sc.nextInt();
		int [] map=new int[N+1];
		for(int i=0;i<M;i++){
			map[sc.nextInt()]++;
			map[sc.nextInt()]++;
		}
		for(int i=1;i<map.length;i++)
			System.out.println(map[i]);
		
	} int N=sc.nextInt(); N sc.nextInt() sc.nextInt sc int M=sc.nextInt(); M sc.nextInt() sc.nextInt sc int [] map=new int[N+1]; map new int[N+1] N+1 N 1 for(int i=0;i<M;i++){
			map[sc.nextInt()]++;
			map[sc.nextInt()]++;
		} int i=0; int i=0; i 0 i<M i M i++ i++ i {
			map[sc.nextInt()]++;
			map[sc.nextInt()]++;
		} {
			map[sc.nextInt()]++;
			map[sc.nextInt()]++;
		} map[sc.nextInt()]++ map[sc.nextInt()] map sc.nextInt() sc.nextInt sc map[sc.nextInt()]++ map[sc.nextInt()] map sc.nextInt() sc.nextInt sc for(int i=1;i<map.length;i++)
			System.out.println(map[i]); int i=1; int i=1; i 1 i<map.length i map.length map map.length i++ i++ i System.out.println(map[i]); System.out.println(map[i]) System.out.println System.out System System.out map[i] map i String[] args args private static void print(String string) {
		// TODO Auto-generated method stub
		if (debug)
			System.out.println(string);
	} print {
		// TODO Auto-generated method stub
		if (debug)
			System.out.println(string);
	} if (debug)
			System.out.println(string); debug System.out.println(string) System.out.println System.out System System.out string String string string private static void print(int[] data) {
		if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		}
	} print {
		if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		}
	} if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		} debug {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		} for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]); int i = 0; int i = 0; i 0 i < data.length i data.length data data.length i++ i++ i System.out.println(i + ":" + data[i]); System.out.println(i + ":" + data[i]) System.out.println System.out System System.out i + ":" + data[i] i + ":" + data[i] i ":" data[i] data i int[] data data private static void print(String[] data) {
		if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		}
	} print {
		if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		}
	} if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		} debug {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		} for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]); int i = 0; int i = 0; i 0 i < data.length i data.length data data.length i++ i++ i System.out.println(i + ":" + data[i]); System.out.println(i + ":" + data[i]) System.out.println System.out System System.out i + ":" + data[i] i + ":" + data[i] i ":" data[i] data i String[] data data private static void print(char[] data) {
		if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		}
	} print {
		if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		}
	} if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		} debug {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		} for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]); int i = 0; int i = 0; i 0 i < data.length i data.length data data.length i++ i++ i System.out.println(i + ":" + data[i]); System.out.println(i + ":" + data[i]) System.out.println System.out System System.out i + ":" + data[i] i + ":" + data[i] i ":" data[i] data i char[] data data private static void print(double[] data) {
		if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		}
	} print {
		if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		}
	} if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		} debug {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		} for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]); int i = 0; int i = 0; i 0 i < data.length i data.length data data.length i++ i++ i System.out.println(i + ":" + data[i]); System.out.println(i + ":" + data[i]) System.out.println System.out System System.out i + ":" + data[i] i + ":" + data[i] i ":" data[i] data i double[] data data private static void print(int[][] data) {

		if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i]);
				}
				System.out.println();
			}
		}
	} print {

		if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i]);
				}
				System.out.println();
			}
		}
	} if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i]);
				}
				System.out.println();
			}
		} debug {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i]);
				}
				System.out.println();
			}
		} for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i]);
				}
				System.out.println();
			} int i = 0; int i = 0; i 0 i < data.length i data.length data data.length i++ i++ i {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i]);
				}
				System.out.println();
			} {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i]);
				}
				System.out.println();
			} for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i]);
				} int j = 0; int j = 0; j 0 j < data.length j data.length data data.length j++ j++ j {
					System.out.print(i + " " + j + ":" + data[i]);
				} {
					System.out.print(i + " " + j + ":" + data[i]);
				} System.out.print(i + " " + j + ":" + data[i]) System.out.print System.out System System.out i + " " + j + ":" + data[i] ":" j i + " " + j + ":" + data[i] i " " j ":" data[i] data i System.out.println() System.out.println System.out System System.out int[][] data data private static void print(char[][] data) {

		if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			}
		}
	} print {

		if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			}
		}
	} if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			}
		} debug {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			}
		} for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			} int i = 0; int i = 0; i 0 i < data.length i data.length data data.length i++ i++ i {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			} {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			} for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				} int j = 0; int j = 0; j 0 j < data.length j data.length data data.length j++ j++ j {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				} {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				} System.out.print(i + " " + j + ":" + data[i][j] + " ") System.out.print System.out System System.out i + " " + j + ":" + data[i][j] + " " data[i][j] ":" j i + " " + j + ":" + data[i][j] + " " i " " j ":" data[i][j] data[i] data i j " " System.out.println() System.out.println System.out System System.out char[][] data data private static void print(String[][] data) {

		if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			}
		}
	} print {

		if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			}
		}
	} if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			}
		} debug {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			}
		} for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			} int i = 0; int i = 0; i 0 i < data.length i data.length data data.length i++ i++ i {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			} {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			} for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				} int j = 0; int j = 0; j 0 j < data.length j data.length data data.length j++ j++ j {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				} {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				} System.out.print(i + " " + j + ":" + data[i][j] + " ") System.out.print System.out System System.out i + " " + j + ":" + data[i][j] + " " data[i][j] ":" j i + " " + j + ":" + data[i][j] + " " i " " j ":" data[i][j] data[i] data i j " " System.out.println() System.out.println System.out System System.out String[][] data data private static void print(double[][] data) {

		if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			}
		}
	} print {

		if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			}
		}
	} if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			}
		} debug {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			}
		} for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			} int i = 0; int i = 0; i 0 i < data.length i data.length data data.length i++ i++ i {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			} {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			} for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				} int j = 0; int j = 0; j 0 j < data.length j data.length data data.length j++ j++ j {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				} {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				} System.out.print(i + " " + j + ":" + data[i][j] + " ") System.out.print System.out System System.out i + " " + j + ":" + data[i][j] + " " data[i][j] ":" j i + " " + j + ":" + data[i][j] + " " i " " j ":" data[i][j] data[i] data i j " " System.out.println() System.out.println System.out System System.out double[][] data data public static void inPutData(char[][] c) {
		for (int i = 0; i < c.length; i++) {
			c[i] = sc.nextLine().toCharArray();
		}
	} inPutData {
		for (int i = 0; i < c.length; i++) {
			c[i] = sc.nextLine().toCharArray();
		}
	} for (int i = 0; i < c.length; i++) {
			c[i] = sc.nextLine().toCharArray();
		} int i = 0; int i = 0; i 0 i < c.length i c.length c c.length i++ i++ i {
			c[i] = sc.nextLine().toCharArray();
		} {
			c[i] = sc.nextLine().toCharArray();
		} c[i] = sc.nextLine().toCharArray() c[i] c i sc.nextLine().toCharArray() sc.nextLine().toCharArray sc.nextLine() sc.nextLine sc char[][] c c public class Main {
	static boolean debug = true;
	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		// write here
		int N=sc.nextInt();
		int M=sc.nextInt();
		int [] map=new int[N+1];
		for(int i=0;i<M;i++){
			map[sc.nextInt()]++;
			map[sc.nextInt()]++;
		}
		for(int i=1;i<map.length;i++)
			System.out.println(map[i]);
		
	}

	private static void print(String string) {
		// TODO Auto-generated method stub
		if (debug)
			System.out.println(string);
	}

	private static void print(int[] data) {
		if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		}
	}

	private static void print(String[] data) {
		if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		}
	}

	private static void print(char[] data) {
		if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		}
	}

	private static void print(double[] data) {
		if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		}
	}

	private static void print(int[][] data) {

		if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i]);
				}
				System.out.println();
			}
		}
	}

	private static void print(char[][] data) {

		if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			}
		}
	}

	private static void print(String[][] data) {

		if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			}
		}
	}

	private static void print(double[][] data) {

		if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			}
		}
	}

	public static void inPutData(char[][] c) {
		for (int i = 0; i < c.length; i++) {
			c[i] = sc.nextLine().toCharArray();
		}
	}

} public class Main {
	static boolean debug = true;
	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		// write here
		int N=sc.nextInt();
		int M=sc.nextInt();
		int [] map=new int[N+1];
		for(int i=0;i<M;i++){
			map[sc.nextInt()]++;
			map[sc.nextInt()]++;
		}
		for(int i=1;i<map.length;i++)
			System.out.println(map[i]);
		
	}

	private static void print(String string) {
		// TODO Auto-generated method stub
		if (debug)
			System.out.println(string);
	}

	private static void print(int[] data) {
		if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		}
	}

	private static void print(String[] data) {
		if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		}
	}

	private static void print(char[] data) {
		if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		}
	}

	private static void print(double[] data) {
		if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		}
	}

	private static void print(int[][] data) {

		if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i]);
				}
				System.out.println();
			}
		}
	}

	private static void print(char[][] data) {

		if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			}
		}
	}

	private static void print(String[][] data) {

		if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			}
		}
	}

	private static void print(double[][] data) {

		if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			}
		}
	}

	public static void inPutData(char[][] c) {
		for (int i = 0; i < c.length; i++) {
			c[i] = sc.nextLine().toCharArray();
		}
	}

} Main
import java.io.PrintStream;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Map;
import java.util.Queue;
import java.util.Scanner;
import java.util.Set;

public class Main {
	static boolean debug = true;
	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		// write here
		int N=sc.nextInt();
		int M=sc.nextInt();
		int [] map=new int[N+1];
		for(int i=0;i<M;i++){
			map[sc.nextInt()]++;
			map[sc.nextInt()]++;
		}
		for(int i=1;i<map.length;i++)
			System.out.println(map[i]);
		
	}

	private static void print(String string) {
		// TODO Auto-generated method stub
		if (debug)
			System.out.println(string);
	}

	private static void print(int[] data) {
		if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		}
	}

	private static void print(String[] data) {
		if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		}
	}

	private static void print(char[] data) {
		if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		}
	}

	private static void print(double[] data) {
		if (debug) {
			for (int i = 0; i < data.length; i++)
				System.out.println(i + ":" + data[i]);
		}
	}

	private static void print(int[][] data) {

		if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i]);
				}
				System.out.println();
			}
		}
	}

	private static void print(char[][] data) {

		if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			}
		}
	}

	private static void print(String[][] data) {

		if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			}
		}
	}

	private static void print(double[][] data) {

		if (debug) {
			for (int i = 0; i < data.length; i++) {
				for (int j = 0; j < data.length; j++) {
					System.out.print(i + " " + j + ":" + data[i][j] + " ");
				}
				System.out.println();
			}
		}
	}

	public static void inPutData(char[][] c) {
		for (int i = 0; i < c.length; i++) {
			c[i] = sc.nextLine().toCharArray();
		}
	}

}
