The expenses which may accrue under Kan. Stat. Ann. § 22-2723 shall be treated as costs of the criminal proceedings and shall be taxed and paid as provided in Kan. Stat. Ann. § 22-3801 et seq.