If a county officer neglects or refuses to perform a duty imposed on the officer under this part, any other act or by a rule of court, the officer commits, for each neglect or refusal, a misdemeanor and, upon conviction, shall be sentenced to pay a fine not exceeding $500.
16 Pa.C.S. § 12311