how to calculate tpm from raw counts