9. Section 8 shall not apply to the Public Protector if he is or becomes a judge of the Provincial Court, the Social Welfare Court or the sessions, but the years during which he was Public Protector shall be counted for the purposes of his pension as a judge; the same shall apply to his assistant.