if you read the faq and look for trainer, you notice that it is an exception. Trainer is counted per.. well... trainer. Every companion with trainer 2 and a higher level than the training unit will add 10 xp to it. If you hire a companion with trainer who has a higher level than you, you gain xp as well and they also train eachother. It is, as far as i know, the only skill to benefit from every person who has it
you read whenever you camp or rest in a town/city/castle