At first glance, the rank seems to be $2$. The basis elements seem to be $(0,1), (1,0)$.
However, how is scalar multiplication defined? Is $a(p,q)=(ap,q)=(p,aq)$? So if the module under consideration is $\Bbb{Z}_2\oplus \Bbb{Z}_3$, is $5(1,2)=(5,2)=(1,2)=(1,10)=(1,1)$?