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