A farm raises cows and chickens. The farmer has a total of 46 animals. One day he counts the legs of all his animals and realizes he has a total of 156 legs. How many cows does the farmer have?

Thanks in advance, I really appreciate it :)