import Foundation
func toTuple<T>(_ args: [T]) -> (T, T) { (args[0], args[1]) }
func readInts() -> [Int] { readLine()!.split(separator: " ").map { Int($0)! } }

let (n, m) = toTuple(readInts())
var ai: [Int] = []
for _ in 0..<m {
  ai.append(contentsOf: readInts())
}
for i in 1...n {
  print(ai.filter { $0 == i }.count)
}