A person has certain number of cows and birds. They have 172 eyes and 344 legs. How many cows does he have?