The study shows how to define, without any ad hoc assumption, the average ion charge Z I in the electron-ion model for plasmas and liquid metals: this definition comes out of the condition that a plasma consisting of electrons and nuclei can be described as an electron-ion mixture. Based on this definition of the average ion charge, the Quantum Hyper-Netted Chain (QHNC) method takes account of the thermal ionization and the resonant-state contribution to the bound electrons forming an ion.On the other hand, Blenski and Cichocki (2007) have derived a formula to determine the uniform electron density in a plasma as an electron-ion mixture by using the variational method with help of the local density approximation. Without use of any approximation, we derived the formula determining the electron density in an extended form on the basis of the density functional theory. This formula is shown to be valid also for the QHNC method.