There are 18 animals on a farm.
Some of the animals are ducks and some of the animals are cows.
If the total number of animal legs is 52, how many cows are there?