module REXML::Parsers::EnumerableTally

def tally

def tally
  counts = {}
  each do |item|
    counts[item] ||= 0
    counts[item] += 1
  end
  counts
end