The sheriff and every other collecting officer shall pay all penalties, fines, forfeitures, amercements, and other sums of money collected by the sheriff or such other officer, or that ought to be collected, for the use of a county, into the hands of the clerk of the court or magistrate from whom the sheriff or such other officer received the execution under which the sheriff or such other officer made, or ought to have made, the collection, on or before the return day of such execution.