It shall be the duty of the sheriff or other officer collecting costs on execution in this state, after retaining his own fees, to pay the residue of such costs collected to the clerk of the court from which the execution issued and take a receipt therefor.
K.S.A. 28-145