Add a countCopies() method to Works

Hi,

Found myself writing this in Banjo. Thought it would be better here. Also this commit comes with passing tests.

@scoen @bren2000 

Huw.