I was assigned to Prove that $\mathbb{Q}$ is countably infinite
I did the following:
We define $\mathbb{Q}= \lbrace \frac{a}{b} \mid a, b \in \mathbb{Z}_{>0} \rbrace$. Also define $\mathbb{Q} \xrightarrow{a} \mathbb{Z}_{>0} \times \mathbb{Z}_{>0}$ as $\forall a, b \in \mathbb{Z}_{>0}$ where $\frac{a}{b} \in \mathbb{Q}$, $q(\frac{a}{b})=(a,b)$. Then since $\mathbb{Z}_{>0}$ is countably infinite, and by the fact that the Cartesian product of two countably infinite sets is countably infinite, $\mathbb{Z}_{>0} \times \mathbb{Z}_{>0}$ is countably infinite with some mapping $\mathbb{Z}_{>0} \times \mathbb{Z}_{>0} \xrightarrow{b} \mathbb{Z}_{>0}$. Then the composite function $a \circ b$ is a bijection $\mathbb{Q} \xrightarrow{a \circ b} \mathbb{Z}_{>0}$ proving $\mathbb{Q}$ is countably infinite.
My question: is there any alternative way to prove this or is there any way to strengthen my proof or change it?