Elmer counted 9 pigs and cows.He counted 10 cows and horses.He counted 16 animals in all.How many cows did he count?