I am trying to find number of subgroups of $\mathbb{Z}_p \oplus \mathbb{Z}_p \oplus \mathbb{Z}_p$ for prime $p$. I got $p^2+p+1$ subgroups of order $p$, but for subgroups of order $p^2$, I cant see how would it be $p^2 + p+1$ subgroups?
Is there any generalised method for $\mathbb{Z}_p \oplus \mathbb{Z}_p \oplus \mathbb{Z}_p \oplus \mathbb{Z}_p$..... and so on.?