A lady holding one dog while another dog is playing in the yard.
A lady has two dogs with her.
The lady who has two dogs could be holding one while the other plays in the yard.
Holding one dog while another dog is playing equals two dogs.
Even though the lady only has direct contact with the first dog the dog playing in the yard is also hers.