import scala.io.StdIn._
object Main extends App {
  val Array(n, m) = readLine.trim.split(' ').map(_.toInt)
  val counts = Array.fill(n){0}
  for (_ ← 0 until m) {
    val Array(a, b) = readLine.trim.split(' ').map(_.toInt)
    counts(a - 1) += 1
    counts(b - 1) += 1
  }
  counts.foreach(println)
}
