public static function countAll()
    {
        $count = 0;

        $dir = new \DirectoryIterator(static::config('directory'));

        foreach ($dir as $fileinfo) {
            if ($fileinfo->isFile()) {
                $count++;
            }
        }

        return $count;
    }