#161 added back count & sum to expanding window fn