program main
  implicit none
  
  integer :: i,j,n,m,l(50)=0,a,b
  
  read(*,*)n,m
  do i = 1, m
    read(*,*)a,b
    l(a) = l(a) + 1
    l(b) = l(b) + 1
  end do
  
  do i = 1, n
    write(*,*)l(i)
  end do
end program main