Slightly cleaner total

The second argument to sum is the initial value for the reduce.
Merge pull request #2024 from coderanger/patch-1

Slightly cleaner total