How many states were Confederate States during the Civil War?

How many states were Confederate States during the Civil War?