object Main extends App {
	val Array(n, m) = scala.io.StdIn.readLine.split(" ").map(_.toInt)
	val a = new Array[Int](n)

	for(i<-0 until m){
		val Array(tp1, tp2) = scala.io.StdIn.readLine.split(" ").map(_.toInt  - 1)
		a(tp1) += 1
		a(tp2) += 1
	}

	a.foreach(println)
}
