Counting the votes, election of one candidate
 24. (1) In a ranked ballot election in which one candidate is to be elected to an office, the votes are counted in accordance with this section and in the sequence set out in this section. (2) Threshold: Calculate the threshold for the office under section 19. (3) First round of vote counting: Conduct the first round of vote counting as follows: 1. Count the number of votes cast for each candidate as indicated by each elector’s highest ranking on their ballot. 2. If the number of votes for a candidate equals or exceeds the threshold, take no further steps under this section and, as soon as possible after voting day, the clerk shall declare that candidate to be elected. 3. If no candidate has received sufficient votes to equal or exceed the threshold, eliminate a single candidate or a batch of candidates in accordance with section 20 or 21. If there is a tie between two or more candidates with the fewest votes, resolve the tie in accordance with section 25. 4. The candidates who have not been eliminated under paragraph 3 are continuing candidates in the next round. (4) Exhausted ballots: Identify any exhausted ballots. (5) Transfer of votes from eliminated candidates: Transfer the votes from the candidates eliminated in the first round to the continuing candidates in the next round as follows: 1. Transfer each vote received by each candidate eliminated in the first round to the continuing candidate who, as marked on the same elector’s ballot, received the next highest ranking of all continuing candidates. If the elector’s ballot is exhausted, his or her vote for an eliminated candidate shall not apply to any candidate. (6) Second round of vote counting: Conduct the second round of vote counting as follows: 1. Count the number of votes cast for each continuing candidate as indicated by each elector’s highest ranking of the continuing candidates on their ballot and the number of votes transferred to the candidate after the previous round. 2. If the number of votes received by a candidate equals or exceeds the threshold, take no further steps under this section and, as soon as possible after voting day, the clerk shall declare that candidate to be elected. 3. If no candidate has received sufficient votes to equal or exceed the threshold, eliminate a single candidate or a batch of candidates in accordance with section 20 or 21. If there is a tie between two or more candidates with the fewest votes, resolve the tie in accordance with section 25. 4. The candidates who have not been eliminated under paragraph 3 are continuing candidates in the next round. (7) For subsequent rounds of vote counting: Repeat the steps set out in subsections (4), (5) and (6), with necessary modifications, for each subsequent round of vote counting until the number of votes received by one candidate equals or exceeds the threshold or until only two continuing candidates remain. Then take the following steps: 1. If the number of votes received by one candidate equals or exceeds the threshold, take no further steps under this section and, as soon as possible after voting day, the clerk shall declare that candidate to be elected. 2. If only two candidates remain, the clerk shall, as soon as possible after voting day, declare the candidate with the most votes, including transferred votes, to be elected.