488.026. Surcharge for all criminal cases, amount — county ordinance defined — collection and deposit of funds. — As provided by section 56.807, there shall be assessed and collected a surcharge of four dollars in all criminal cases filed in the courts of this state, including violations of any county ordinance, any violation of criminal or traffic laws of this state, including infractions, or against any person who has pled guilty of a violation and paid a fine through a fine collection center, but no such surcharge shall be assessed when the costs are waived or are to be paid by the state, county, or municipality or when a criminal proceeding or the defendant has been dismissed by the court. For purposes of this section, the term "county ordinance" shall include any ordinance of the City of St. Louis. The clerk responsible for collecting court costs in criminal cases shall collect and disburse such amounts as provided by sections 488.010 to 488.020. Such funds shall be payable to the prosecuting attorneys and circuit attorneys' retirement fund.