When we go from the field variables $({\vec E},\vec{B})$ to the potentials $(\phi,{\vec A})$, the number of degrees of freedom describing any electromagnetic field is reduced from $6$ ($3$ components of ${\vec E}$+$3$ components of ${\vec B}$) to $4$ ($\phi$ is a scalar+ $3$ components of ${\vec A}$. A Coulomb gauge condition $\nabla\cdot{\vec A}=0$ can further reduce the number of degrees of freedom by at most one because it amounts to the freedom of choosing only one scalar function. This leaves us with 3 degrees of freedom for a general electromagnetic field. In my way of counting, I end up with $3$ degrees of freedom for a general electromagnetic field. What's wrong with this counting of DOFs?
I asked a related question here. Here I am asking what is wrong with my logic?