There shall be elected in each county a county attorney who shall be licensed to practice law in this state, and whose term of office shall be four years and until a successor qualifies. Before entering upon duties the county attorney shall take an oath. The oath must be recorded with the county recorder.