Those two electors were counted because they were appointed.
The 12th Amendment states:
The person having the greatest number of votes for President, shall be the President, if such number be a majority of the whole number of Electors appointed
Appointment of the electors is done by each state "in such manner as the legislature thereof may direct." (Article II, Section 1, Clause 2).
Once appointed, a state's electors count towards the total number of electors whether or not they vote. However, a state's failure to appoint electors (because there's no result or because of legal challenges) reduces the whole number of electors appointed and, therefore, the number necessary to win the election.
The president is the person who gets themajority of the electoral votes cast normally 270 (out of 538). That number need not be 270, however, and it won't be if a state fails to choose electors.
The total number cast does not play into what constitutes a majority.
Those two electors were counted because they were appointed.
The 12th Amendment states:
Appointment of the electors is done by each state "in such manner as the legislature thereof may direct." (Article II, Section 1, Clause 2).
Once appointed, a state's electors count towards the total number of electors whether or not they vote. However, a state's failure to appoint electors (because there's no result or because of legal challenges) reduces the whole number of electors appointed and, therefore, the number necessary to win the election.
Ah ok, i was misinterpreting your phrasing:
The total number cast does not play into what constitutes a majority.