use defaultdict in count_vowels