private function findNumberOfSentMails() {
        $sendCount = 0;
        if ($this->messageFormat->getVersion() === 'v3.1') {
            $messages = $this->resultApi->getBody()['Messages'];
            foreach ($messages as $message) {


                if (isset($message['To'])) {
                    $sendCount += count($message['To']);
                }
                if (isset($message['Bcc']) && (!empty($message['Bcc']))) {
                    $sendCount += count($message['Bcc']);
                }
                if (isset($message['Cc']) && (!empty($message['Cc']))) {
                    $sendCount += count($message['Cc']);
                }
            }
            return $sendCount;
        }
        if ($this->messageFormat->getVersion() === 'v3') {
            if (isset($this->resultApi->getBody()['Sent'])) {
                $sendCount += count($this->resultApi->getBody()['Sent']);
            }
            return $sendCount;
        }
        return $sendCount;
    }
private function findNumberOfSentMails() {
        $sendCount = 0;
        if ($this->messageFormat->getVersion() === 'v3.1') {
            $messages = $this->resultApi->getBody()['Messages'];
            foreach ($messages as $message) {


                if (isset($message['To'])) {
                    $sendCount += count($message['To']);
                }
                if (isset($message['Bcc']) && (!empty($message['Bcc']))) {
                    $sendCount += count($message['Bcc']);
                }
                if (isset($message['Cc']) && (!empty($message['Cc']))) {
                    $sendCount += count($message['Cc']);
                }
            }
            return $sendCount;
        }
        if ($this->messageFormat->getVersion() === 'v3') {
            if (isset($this->resultApi->getBody()['Sent'])) {
                $sendCount += count($this->resultApi->getBody()['Sent']);
            }
            return $sendCount;
        }
        return $sendCount;
    }
private function findNumberOfSentMails ( ) { $ sendCount = 0 ; if ( $ this -> messageFormat -> getVersion ( ) === 'v3.1' ) { $ messages = $ this -> resultApi -> getBody ( ) [ 'Messages' ] ; foreach ( $ messages as $ message ) { if ( isset ( $ message [ 'To' ] ) ) { $ sendCount += count ( $ message [ 'To' ] ) ; } if ( isset ( $ message [ 'Bcc' ] ) && ( ! empty ( $ message [ 'Bcc' ] ) ) ) { $ sendCount += count ( $ message [ 'Bcc' ] ) ; } if ( isset ( $ message [ 'Cc' ] ) && ( ! empty ( $ message [ 'Cc' ] ) ) ) { $ sendCount += count ( $ message [ 'Cc' ] ) ; } } return $ sendCount ; } if ( $ this -> messageFormat -> getVersion ( ) === 'v3' ) { if ( isset ( $ this -> resultApi -> getBody ( ) [ 'Sent' ] ) ) { $ sendCount += count ( $ this -> resultApi -> getBody ( ) [ 'Sent' ] ) ; } return $ sendCount ; } return $ sendCount ; }
Finds the number of sent emails  by last send call
@return int Number of messages sent
Finds the number of sent emails by last send call