You can have the data in a .csv file
This is not thoroughly tested - see how it works for you.
@echo off
(
echo TOT_FOLDERS,TOT_FILES,TOT_SIZE,FOLDER
rem parse each folder
for /f "delims=" %%a in ('dir /a:d /o:n /b /-p') do (
rem collect files
for /f "delims=" %%b in ('dir "%%a" /b /s /-p /a-d ^|find /c /v ""') do (
rem collect folders
for /f "delims=" %%c in ('dir "%%a" /b /s /-p /ad ^|find /c /v ""') do (
rem collect total size
for /f "tokens=2,*" %%d in ('dir "%%a" /s /-p ^|find " File(s) " ') do set totalsize=%%e
setlocal enabledelayedexpansion
echo %%c,%%b,"!totalsize!","%%~fa"
endlocal
)
)
)
)>"total.csv"