How many states were there when the Civil War ended?