public function count(): int
    {
        $size = 0;
        if (!$store = $this->getMessagesStore()) {
            return $size;
        }
        foreach ($store as $messages) {
            $size += \count($messages);
        }
        return $size;
    }
public function count(): int
    {
        $size = 0;
        if (!$store = $this->getMessagesStore()) {
            return $size;
        }
        foreach ($store as $messages) {
            $size += \count($messages);
        }
        return $size;
    }
public function count ( ) : int { $ size = 0 ; if ( ! $ store = $ this -> getMessagesStore ( ) ) { return $ size ; } foreach ( $ store as $ messages ) { $ size += \ count ( $ messages ) ; } return $ size ; }
Get size of messages container

@return integer
Get size of messages container