from typing import Counter


def v2_is_anagram(word1, word2):
    """Return True if the given words are anagrams.

    Using Counter which does exactly the same as count_letters.
    """
    return Counter(word1) == Counter(word2)