roundcubemail/program/lib/Roundcube/rcube_imap.php
public function count($folder='', $mode='ALL', $force=false, $status=true)
    {
        if (!strlen($folder)) {
            $folder = $this->folder;
        }

        return $this->countmessages($folder, $mode, $force, $status);
    }
public function count($folder='', $mode='ALL', $force=false, $status=true)
    {
        if (!strlen($folder)) {
            $folder = $this->folder;
        }

        return $this->countmessages($folder, $mode, $force, $status);
    }
public function count ( $ folder = '' , $ mode = 'ALL' , $ force = false , $ status = true ) { if ( ! strlen ( $ folder ) ) { $ folder = $ this -> folder ; } return $ this -> countmessages ( $ folder , $ mode , $ force , $ status ) ; }
Get message count for a specific folder

@param  string  $folder  Folder name
@param  string  $mode    Mode for count [ALL|THREADS|UNSEEN|RECENT|EXISTS]
@param  boolean $force   Force reading from server and update cache
@param  boolean $status  Enables storing folder status info (max UID/count),
required for folder_status()

@return int Number of messages
Get message count for a specific folder