Mr.Yan has almost as twice as many chickens and cows. The total number of legs and heads is 184. How many cows are there?