It can be proven that if one considers a separable Hilbert space to define the theory on, then the orthonormal basis for this space is countable.
If one considers a discrete set of harmonic oscillators with a Hamiltonian: $$ H=\sum_{i=1}^{n}\hbar w\left(a^\dagger_ia_i+\frac{1}{2}\right). $$ Then one can define for such theory a bosonic Fock space such that: $$ \mathcal{F}=\oplus_{n}H_n, $$ where $H_n$ is the Hilbert space of $n$ excitations. In this context, for this space one can consider the countable basis with elements:
$$ {\psi}=\prod_{i,\lambda_i}(a_i^{\dagger})^{\lambda_i}|0\rangle, $$ where $i$, indicates the $i$th oscillator and $\lambda_i$ is the occupation number of that oscillator.
So far everything looks fine with me because the states above are discrete and countable and I see no contradiction with the claim that $\mathcal{F}$ is a Hilbert space, but when one generalizes the notions above to the quantum field theory then one has an uncountable set of oscillators ($\hbar=1$): $$ H=\int \:{d^3p} ~ w_p \left(a^\dagger_pa_p+\frac{1}{2}\right) $$
Then the basis for the said Fock space is continuous accordingly. Now how is this generalized Fock space a separable Hilbert space?