I believe the answer is: 10 states
The purpose of the identifications is to ensure that people who give their votes are the citizens who had the legal right to do so.
This would prevent potential fraud / attempts that is made to influence the outcome of the elections.