# File lib/histogram.rb, line 24 def count(check_keys = keys) check_keys = [check_keys] if ! check_keys.kind_of? Array count = 0 check_keys.each { |key| count += self[key] if has_key? key } count end