The accounts of sheriffs for keeping prisoners in their respective jails charged with crime, for which the state may eventually become liable, shall be certified; provided, that the sheriffs having such bills shall first make oath as to the correctness of the bills before the clerk of the circuit or criminal court, who shall affix the clerk's certificate to the bills.