(a) The costs chargeable to the state or county in criminal cases tried in criminal courts, circuit courts or general sessions courts shall be made out so as to show the specific terms, and be examined, entered of record, and certified to be correct by the clerk of the court or judge before whom the case was tried or by whom it was disposed.
(b) The clerks of the courts are granted full power, and it is made their duty to examine into, inspect and audit all bills of costs, as above provided, accruing against the state or county, and disallow any part or all of the bills of costs that may be illegally or wrongfully taxed against the state or county.