Replaced total with totalCount in result of counting Grouping properties