ARAPAHO, Okla. (AP) — Authorities have charged a western Oklahoma sheriff with coercing and bribing female inmates so he could use them in a sex-slave operation run out of his jail.

Custer County Sheriff Mike Burgess resigned Wednesday just as state prosecutors filed 35 felony charges against him, including 14 counts of second-degree rape, seven counts of forcible oral sodomy and five counts of bribery by a public official.

Burgess, the top officer in the county of 26,000 since 1994, appeared in court Wednesday and was released after posting $50,000 bail. The crimes are to have occurred between October 2005 and April 2007.