To get both, dir output and size calculation, without using any of the other proposed options, you can use tee(1) and process substitution...
dir | tee >( awk '{ total += $4 }; END { print total }' )
dir | tee >( awk '{ total += $4 }; END { print total }' )