When any sheriff or other officer enforces an order for attachment by taking possession of horses, cattle or live stock, and the same are not immediately replevied or restored to the debtor, such officer shall provide sufficient sustenance for the support of such live stock until the live stock is sold or discharged from such attachment. The sheriff or other officer shall receive therefor a reasonable compensation, to be ascertained and determined by the court in which the attachment order was entered, and charged in the fee bill of such officer, and shall be collectible as part of the costs.
735 ILCS 5/4-124