By Jordan-Holder thm, it is known that every finite group has a unique composition series.(Here, unique means that there is only one kinds of such series.)
And it is known also that composition series of a finite group does not determine its group. For example, $\mathbb{Z}_2 \times \mathbb{Z}_2$ and $\mathbb{Z}_4$ have the same composition series.
But $\mathbb{Z}_2 \times \mathbb{Z}_2$ has three different composition series in it and $\mathbb{Z}_4$ has only one such series.
My question arises here.
If two finite groups have the same composition series and their total number of such series are also same, then does the two groups equal?
In other words, composition series and its number in it completely determines the original group?