Comparison of electromagnets with different numbers of coils