protected function getTotal($directory, array $options = array())
    {
        $options['count'] = true;
        return (int) $this->scanner->scan($directory, $options);
    }
protected function getTotal($directory, array $options = array())
    {
        $options['count'] = true;
        return (int) $this->scanner->scan($directory, $options);
    }
protected function getTotal ( $ directory , array $ options = array ( ) ) { $ options [ 'count' ] = true ; return ( int ) $ this -> scanner -> scan ( $ directory , $ options ) ; }
Returns a total number of scanned files
@param string $directory
@param array $options
@return integer
Returns a total number of scanned files