import Control.Monad

main :: IO ()
main = do
  [n,m] <- map read . words <$> getLine
  connect <- replicateM m (map  read . words <$> getLine) :: IO [[Int]]
  forM_ [1..n] (\i -> print $ length  $ filter (==i) (concat connect))