Where a county and township peace officers’ retirement or pension system is established, the marshal and constable shall be included in the system and, for the purpose of carrying out this article and enabling them to benefit thereby, they shall be deemed to be county employees for this purpose and the pension provided and payable to the marshal and constable is a legal charge against the county, subject to the provisions of such county and township peace officers’ retirement or pension system.