Below is an instruction that describes a task. Write a response that appropriately completes the request in English. Please answer in English.

### Instruction:
Carly is a pet groomer. Today, her task was trimming the four nails on dogs’ paws. She trimmed 164 nails, but three of the dogs had only three legs. How many dogs did Carly work on?

### Response:
Let N be the number of dogs with 4 legs Carly worked on.
All dogs with 4 legs had 4N paws.
All dogs with 3 legs had 3 * 3 = <<3*3=9>>9 paws.
She trimmed 164 / 4 = <<164/4=41>>41 paws.
She worked on 4N + 9 = 41 paws.
Thus, she worked on 4N = 32 paws on dogs with 4 legs.
She worked on N = 32 / 4 = <<32/4=8>>8 dogs with 4 legs.
Thus, Carly worked on 8 + 3 = <<8+3=11>>11 dogs.
#### 11