object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val n, m = sc.nextInt()
  val e = List.fill(2 * m)(sc.nextInt())
  val count = e.groupBy(identity).view.mapValues(_.length)
  for (i <- 1 to n) {
    println(count.getOrElse(i, 0))
  }
}
