Any metric space that has a countable dense subset has a countable base, this is a classic fact. I show this and more here; it could have been more succinctly stated as $w(X)=d(X)=l(X)=nw(X)$, etc. for metrisable $X$, e.g.
So $\ell^2$ and in fact all $\ell^p$ for $p\neq \infty$ are separable (so have countable weight) while $\ell^\infty$ has not, because it has a closed discrete subset of size continuum. The reasoning is: if $X$ has a countable base, this holds for all subspaces too, but a large discrete subspace does not have a countable base:
Suppose $X$ is discrete, and let $\mathcal{B}$ be a base for $X$. It's clear that for each $x \in X$, $\{x\}$ is in $\mathcal B$ because that's the only way to write to open singleton as a union of base elements. So $|\mathcal B| \ge |X|$ and so if $X$ is uncountable, $X$ does not have a countable base.
The minimal size of a base (weight) or dense set (density) etc. are just a few of the many ways to "measure" the "size" of a space. In analysis many spaces are indeed of countable base; but e.g. weak topologies on Banach spaces often are not.