# frozen_string_literal: true
vowels = %w[a e i o u]
found = {}
founded = 0
puts 'Puts the word: '
words = gets.chomp.chars
words.each do |n|
next unless vowels.include?(n)
found.store(n, 0)
puts "We have #{founded + 1} vowel(s)."
found[n] += 1
end
vowelsCount = Hash['aeiou'.chars.map{|n| [ n, 0 ]}]
gets.chomp.chars.each{|n| vowelsCount[n] += 1 if vowelsCount.key?(n)}
print(vowelsCount)