Add copy task
Generalise count
Add nb error
Merge pull request #179 from sbrunner/copy

Add copy task