It shall be the duty of the sheriff to attend each regular or special session of the county court for his or her county, either in person or by deputy, and to execute all orders and precepts made by the court. For his or her attendance, the sheriff shall be entitled to receive such fees as are allowed by law to sheriffs for executing the orders and precepts made by the county courts.