Sheriffs and deputy sheriffs shall execute all legal orders to them directed by the governing bodies of the several counties or the chairman thereof and shall receive therefor the same fees and costs allowed in other cases.