Large sum and number counter in ruby.