Keep running sum and count to calculate average.