import java.util.*

fun main(args: Array<String>) {
  val sc = Scanner(System.`in`)
  val n = sc.nextInt()
  val m = sc.nextInt()
  val ab = (1..m).map { Pair(sc.nextInt(), sc.nextInt()) }

  val map = mutableMapOf<Int, Int>()
  for (abi in ab) {
    val a = abi.first
    val b = abi.second

    val atmp = map.getOrElse(a) { 0 }
    val btmp = map.getOrElse(b) { 0 }

    map.put(a, atmp+1)
    map.put(b, btmp+1)
  }

  val list = mutableListOf<Int>()
  for (i in 1..n) {
    val tmp = map.getOrElse(i) { 0 }
    list.add(tmp)
  }

  println(list.joinToString("\n"))

}
