Quantification of credit for authorship