The Electoral College system has each state assign electors who pledge to vote for the candidate who wins the state's popular vote. Voters cast ballots for their state's electors rather than the candidates directly. This system was devised by the founders to avoid having Congress decide the president and to ease vote counting in an era before widespread long-distance communication. A state's number of electors equals its number of senators plus representatives. While a candidate can win the national popular vote but lose the electoral vote, this has only happened a few times. There is ongoing debate around keeping or replacing the current Electoral College system.