Fix row count reported when copying to clipboard.

tidy up formatting