The sheriff or other officer who collects any money from a delinquent county treasurer or the treasurer’s sureties shall within ten days thereafter pay the same into the treasury of the county to which it is due.