The derived group $G^\prime$ is generated by the commutators, i.e. the elements of the form $ghg^{-1}h^{-1}$.
A 1-dimensional representation is a _character_ , i.e. an homomorphism $$ \rho:G\longrightarrow\Bbb C^\times. $$ Since $\Bbb C^\times$ is abelian, $G^\prime<\ker(\rho)$.
Also, $G/G^\prime$ is abelian, so the number of its characters coincides with the number of its elements.
Putting all things together, $G$ has $|G/G^\prime|$ one dimensional representations.