def word_count(words)
text = words.split
text.map do |word|
{word => text.select{|e| e == word}.count}
end
end
p word_count("Alright lets see if that works")
ZGVmIHdvcmRfY291bnQod29yZHMpCgl0ZXh0ID0gd29yZHMuc3BsaXQKCXRleHQubWFwIGRvIHx3b3JkfAoJCXt3b3JkID0+IHRleHQuc2VsZWN0e3xlfCBlID09IHdvcmR9LmNvdW50fQoJZW5kCmVuZAoKcCB3b3JkX2NvdW50KCJBbHJpZ2h0IGxldHMgc2VlIGlmIHRoYXQgd29ya3MiKQ==