Let $G$ and $H$ be finite abelian groups, and assume that they have the following property. For each positive integer $m$, $G$ and $H$ have the same number of elements of order $m$. Then, $G$ and $H$ are isomorphic.

Your answer seems reasonable.
Find out if you're right!