Jack has 8 cats and 2 dogs. Jill has 7 cats and 4 dogs. How many dogs are there in all?