Rule 1:17-1 shall not apply to county clerks, county prosecutors, sheriffs, or employees of their respective offices except as such employees are specifically referred to therein and except as otherwise provided by N.J.S. 2A:158-21 (proscribed political activity of county prosecutors and their staffs).