def vowelhistagram(string)
string.each_char.with_object(Hash.new(0)) {
|obj, hsh| obj =~ /[aeiouAEIOU]/ ? hsh[obj] += 1 : nil
}
end
print vowelhistagram("Alright well lets see if this works")
ZGVmIHZvd2VsaGlzdGFncmFtKHN0cmluZykKCXN0cmluZy5lYWNoX2NoYXIud2l0aF9vYmplY3QoSGFzaC5uZXcoMCkpIHsKCQl8b2JqLCBoc2h8IG9iaiA9fiAvW2FlaW91QUVJT1VdLyA/IGhzaFtvYmpdICs9IDEgOiBuaWwKCX0KZW5kCgpwcmludCB2b3dlbGhpc3RhZ3JhbSgiQWxyaWdodCB3ZWxsIGxldHMgc2VlIGlmIHRoaXMgd29ya3MiKQ==