@classmethod
def get_count_by_uuids_and_user(cls, context, uuids, user_id):
    """Get the count of InstanceMapping objects by UUIDs and user_id.

        The count is used to represent the count of server group members
        belonging to a particular user, for the purpose of counting quota
        usage. Instances that are queued_for_deleted=True are not included in
        the count (deleted and SOFT_DELETED instances).

        :param uuids: List of instance UUIDs on which to filter
        :param user_id: The user_id on which to filter
        :returns: An integer for the count
        """
    return cls._get_count_by_uuids_and_user_in_db(context, uuids, user_id)
