Let $U$ be a collection of pairwise disjoint open intervals. That is, members of $U$ are open intervals in $\mathbb{R}$ and any two distinct members of $U$ are disjoint. Show that $U$ is countable.
My attempted proof:
Let $U \subseteq \mathbb{R}$ be a collection of pairwise disjoint opern intervals. Let $(a,b) \subseteq U$ be one such interval. Since $\mathbb{Q}$ is dense in $\mathbb{R}$, there exists a rational number $q_{a,b} \in (a,b)$. Define $f: U \to \mathbb{Q}$ by $f((a,b))=q_{a,b}$. As $f(a_1,b_1)=f(a_2,b_2)$, or $q_{a_1,b_1}=q_{a_2,b_2}$, implies $(a_1,b_1)=(a_2,b_2)$, we deduce that $f$ is injective. It was proved already in my lecture class that $\mathbb{Q}$ is countable, and that union of countable sets is countable. Thus, we deduce that $U$ is countable. (End of attempted proof)
I feel confident about my proof except the injectivity part. I was looking for help there, assuming the rest of my proof is cogent. If not, please let me know how I can improve on it.