Copy operations correctly set the cursor.rowcount attribute

Fixes ticket #180.
Skip rowcount on copy test on postgres < 8.2

It looks like the server doesn't send the message.
Parse the rowcount as long