Only those names written on the ballot at the general election for the office of President and Vice President of the United States for which a group of presidential electors are pledged on the declaration of write-in candidacy filed pursuant to Section 8650 shall be counted as votes.