implicit none
integer :: n,m
integer,allocatable :: cnt(:)
integer :: i,a,b
read *,n,m
allocate(cnt(n))
cnt(:) = 0
do i = 1,m
   read *,a,b
   cnt(a) = cnt(a) + 1
   cnt(b) = cnt(b) + 1
enddo

do i = 1, n
   print '(i0)',cnt(i)
enddo
stop
end