import java.util.Scanner
fun main(args: Array<String>) {
   val scanner = Scanner(System.`in`)
    val N = scanner.nextInt()
    val M = scanner.nextInt()
    val list = mutableListOf<Int>()
    for(i in 0 until (M*2)){
        list.add(scanner.nextInt())
    }
    for(i in 1..N){
        var count = 0
        list.forEach { 
            if(it == i) count++
         }
         println(count)
    }
}