Returning both sum and count
fixing "dump" to "dumps"