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

        return \count(\array_merge($to, $cc, $bcc));
    }