Election officials scramble to count ballots in key states