A legion was about 5,000 men in several cohorts of heavy infantry ( legionaries ) .
A legion consisted of several cohorts of heavy infantry known as legionaries .