def has_single_count(metadata):
    """
    Return True if the metadata dictionary has a single value for a "count" key.

    Written to improve readability, since this is used a lot in the annotation functions.
    """
    return metadata.get("count") is not None and not isinstance(metadata["count"], list)