how many dogs is it legal to have