Cows

A herd of cows came out to pasture. One of them walked in front – in front of two, one in the back – behind two, and the last one between two. How many cows were in the herd?

There were 3 cows in the herd.