A farmer has a total of 100 animals, consisting of chickens and cows. Each chicken has 2 legs and each cow has 4 legs. If the total number of legs of all the animals is 280, how many cows does the farmer have? Let's think step by step and output the final answer within \boxed{}.
user