Views: 268
Solution:
The answer is 3 i.e. 1 dog, 1 cat and 1 goat
It says "all but two are dogs", which means that 2 are not dog. Similarly, 2 are not cat and 2 are not goat. Thus solution is there are 3 pets out of which one is dog, one is cat and one is goat.
Also, there is one more aspect to it. The girl might have only 2 pets and none of them is dog or cat or goat.