Notwithstanding any other provision of law, no name written upon a ballot in any election shall be counted for an office or nomination unless the candidate whose name has been written on the ballot has complied with Part 3 (commencing with Section 8600) of Division 8.