The compensation for railroad police officers shall be paid by the company for which they are respectively appointed.