src/Viserio/Component/Mail/Transport/AbstractTransport.php
protected function numberOfRecipients(Swift_Mime_SimpleMessage $message): int
    {
        $to  = $message->getTo()  ?? [];
        $cc  = $message->getCc()  ?? [];
        $bcc = $message->getBcc() ?? [];

        return \count(\array_merge($to, $cc, $bcc));
    }
protected function numberOfRecipients(Swift_Mime_SimpleMessage $message): int
    {
        $to  = $message->getTo()  ?? [];
        $cc  = $message->getCc()  ?? [];
        $bcc = $message->getBcc() ?? [];

        return \count(\array_merge($to, $cc, $bcc));
    }
Get the number of recipients.

@param \Swift_Mime_SimpleMessage $message

@return int