The answer is 7 dogs and 11 birds.

For the workings to get this answer, go here.