What if there is a pasture full of cows and one horse would the horse know if it is a horse?

That depends on how long the horse has been with the herd of cattle, and how accustomed (or not) it is to the cow herd. If the horse has been with the herd all its life, no. If it's only been with the cows for a short time, yes.