How do I convert an entire nested hash (key and values) to lowercase in Ruby? : I have a nested hash(Ruby)

    Hash = { "abc" => { "def" => { "count" => 120 } } ,
              "ABC" => {"DEF" => { "COUNT" => 100 } },
              "sample" => {"samplecode" => {"COUNT" => 3 } } }

I want to convert the entire hash to lowercase and after converting if any duplicates exists I want to add the count value i.e.,
the resulting hash should be

    Result = { "abc" => { "def" => { "count" => 220 } } ,
                "sample" => { "samplecode" => { "count" => 3} } }

Thanks in advance :)

