public function getTotalFiles()
    {
        if (!$this->_files) {
            $this->scan;
        }
        $i = 0;
        foreach ($this->_files as $file) {
            if ($file->isFile) {
                $i++;
            }
        }
        return $i;
    }
public function getTotalFiles()
    {
        if (!$this->_files) {
            $this->scan;
        }
        $i = 0;
        foreach ($this->_files as $file) {
            if ($file->isFile) {
                $i++;
            }
        }
        return $i;
    }
public function getTotalFiles ( ) { if ( ! $ this -> _files ) { $ this -> scan ; } $ i = 0 ; foreach ( $ this -> _files as $ file ) { if ( $ file -> isFile ) { $ i ++ ; } } return $ i ; }
count total files

@return int
count total files