If $Y$ is a dense second countable subspace of a regular space $X$, then $X$ is second countable. Problem: Let $X$ be a regular space. If $Y$ is a subspace that is dense and second countable (with respect to the subspace topology), then $X$ is second countable.
I have this problem and I'm having trouble figuring it out. I have a hint, it says: consider B a countable basis for Y and show that $B' = \{\text{int}(\overline{U}) \, : \, U \in B\}$ is a countable basis for X, where $\overline{U}$ stands for the closure in $X$.
Now, it's obvious that $B'$ is countable. The problem is to show that $B'$ is a basis for $X$. Let me show what I tried.
Let $p \in X$ a point and $V$ a neighborhood of $p$. We know that $Y$ is dense, so $V \cap Y$ is a nonempty open set in $Y$. Because $B$ is a basis, there is a $U_V$ such that $U_V \subseteq V\cap Y \Rightarrow U_V \subseteq V$.
I know that if I show $\overline{U_V} \subseteq V$ and $p \in \text{int}(\overline{U_V})$ then we're done: $p \in \text{int}(\overline{U_V}) \subseteq V$ and, therefore, $B'$ is a basis.
I'm having trouble to prove both things in the above paragraph. I can't see where to use regularity or the closure of $U_V$ in $X$. 
Any help would be appreciated. Any solution not using the hint is welcome too. Thanks in advance.
(P.S.: Sorry for my grammar mistakes. Englsh isn't my mother's tongue.)

As Brian M. Scott says, this is false. Another basic example is the lower-limit topology on $\mathbb R$ (that is, the topology generated by the half-open intervals $[a,b)$ for $a<b$). Let's denote this space by $\mathbb R_\ell$. It is not difficult to see that $\mathbb R_\ell$ is regular, and one can show that it is even perfectly normal.
The set $\mathbb Q$ of rationals is a countable dense set, and as $\mathbb R_\ell$ is first-countable it follows that $\mathbb Q$ is a second-countable subspace. However $\mathbb R_\ell$ is not second-countable, as shown here.
