change count to sum