I know that there exists a unique group of order $n$ if and only if $(n, \phi(n))=1$. I also know how to obtain the number of abelian groups of a certain order
There are exactly 5 groups of order 8, two of them are non-abelian and there are exactly 5 groups of order 12, three of them are non-abelian.
I noticed that $\phi(8)=4=(8,4)$, $\phi(12)=4=(12,4)$ and that $2=\frac{8}{4}$,$3= \frac{12}{4}$.
So, my question is are there exactly $\frac{n}{\phi(n)}$ or $\frac{n}{(\phi(n),n)}$ non abelian groups of order $n$? Or is there any way to know how many non-abelian groups of a certian order there are?