Returning both sum and count