The sheriffs and other collecting officers of this state shall be allowed the same fees for collecting and paying over costs as they are allowed by law for the collection of other moneys. They shall not be allowed to charge or receive commissions on costs in their favor.