Quantum states and the statistical entropy of the charged black hole