kappa: copybad now writes no. of bad/good pixels to output param.s

The number of bad and good pixels in the output NDF created by COPYBAD
are now written to output parameters NBAD and NGOOD.