(i)only the votes of electors who have been appointed under a certificate of ascertainment of appointment of electors issued pursuant to section 5, or who have legally been appointed to fill a vacancy of any such elector pursuant to section 4, may be counted; and