Every county officer entitled to collect fees from the public shall keep posted in his or her office a plain and legible statement of the fees allowed by law and failure so to do shall subject the officer to a fine of one hundred dollars and costs, to be recovered in any court of competent jurisdiction.