Fixing typo with StatsSummary variable name.

Renamed totalCatagories to totalCategories.