how many legs does a dog have