import Control.Monad

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