def vowelhistagram(string)
string.each_char.with_object(Hash.new(0)) {
|obj, hsh| hsh[obj] += 1 if obj =~ /[aeiou]/i
else
if (obj =~ /[aeiou]/i).count <= 0
hsh[obj] += 1
end
}
end
print vowelhistagram("Alright well lets see if this works")
ZGVmIHZvd2VsaGlzdGFncmFtKHN0cmluZykKCXN0cmluZy5lYWNoX2NoYXIud2l0aF9vYmplY3QoSGFzaC5uZXcoMCkpIHsKCQl8b2JqLCBoc2h8IGhzaFtvYmpdICs9IDEgaWYgb2JqID1+IC9bYWVpb3VdL2kKCWVsc2UKCQlpZiAob2JqID1+IC9bYWVpb3VdL2kpLmNvdW50IDw9IDAKCQkJaHNoW29ial0gKz0gMQoJCWVuZAoJfQplbmQKCnByaW50IHZvd2VsaGlzdGFncmFtKCJBbHJpZ2h0IHdlbGwgbGV0cyBzZWUgaWYgdGhpcyB3b3JrcyIp