$f$ be a homomorphism from $G$ onto $G'$. I know that $f$ is an $n$-to-one function where $n=|\operatorname{Ker} f|$. So to each element in the homomorphic image $G'=f(G)$ there corresponds exactly $n$ elements in $G$. So $|G|=n*|G'|$. Is this right?
If so, does that mean if $|G|=|G'|$, then $f$ is an isomorphism?