public function getFileCount()
    {
        if (!$files = $this->getFileList()) {
            return 0;
        }
        $lastName = end($files);
        return preg_match('/^(\d+)_.*$/', $lastName, $matches)
            ? $matches[1] : count($files);
    }
public function getFileCount()
    {
        if (!$files = $this->getFileList()) {
            return 0;
        }
        $lastName = end($files);
        return preg_match('/^(\d+)_.*$/', $lastName, $matches)
            ? $matches[1] : count($files);
    }
public function getFileCount ( ) { if ( ! $ files = $ this -> getFileList ( ) ) { return 0 ; } $ lastName = end ( $ files ) ; return preg_match ( '/^(\d+)_.*$/' , $ lastName , $ matches ) ? $ matches [ 1 ] : count ( $ files ) ; }
Count of files
@return int
Count of files