add counts by exception to index
Remove trailing spaces
Tweak headings
Use locals