I do not quite understand this statement. Does this mean if there is one path-components, then $H_0 ( X )$ is generated by one generator, or cyclic. And if there is two path-components, then $H_0 ( X )$ is generated by two generator, but of the form $a^i b^j$?
And why this is true?