The sheriff and recorder shall, in all cases, be entitled to demand the payment of all fees for services in advance, so far as the same can be ascertained.