def get_total_signature_counts(base_array, sig_mask, counts):
    """
    Total signature counts are the number of signature
    query hits (where it was the only hit) for each
    taxon times the number of times the query appeared
    in the data.
    """
    return ((base_array.T * sig_mask) * counts).T.sum(axis=0)