made the count work (or kind of work)
got sum working (kind of working) with hacked grouping