I want to know the number of non-trivial subgroups of $\mathbb{Z}_{p^2}\times \mathbb{Z}_p$. For example, for $p=2$, we have $6$ non-trivial subgroups. I think there exists only $3$ subgroups of order $p$.
Is there any formula for counting the number of subgroups $\mathbb{Z}_{n_1}\times \mathbb{Z}_{n_2}\times ... \times \mathbb{Z}_{n_k}$?