object Main {
	val s = new java.util.Scanner(System.in)
	def main(args: Array[String]) {
		val n, m = s.nextInt;
		var r = new Array[Int](n);

		for (_ <- 1 to m) {
			val a, b = s.nextInt
			r(a - 1) += 1;
			r(b - 1) += 1;
		}
		for (i <- r)
			println(i)
	}
}
