/**
  * @param string $condition
  * @param FolderCollection $folders
  * @param bool $inHeadersOnly
  * @return int
  */
 function SearchMessagesCount($condition, &$folders, $inHeadersOnly)
 {
     $messageCount = 0;
     if ($this->DbStorage->Connect()) {
         $messageCount = $this->DbStorage->SearchMessagesCount($condition, $folders, $inHeadersOnly);
     }
     return $messageCount;
 }