===== ISTEM =====
Solve the following programming task.

TASK: Word Counter

Write a function 'count_words(text)' that returns a dictionary mapping each word in the given text to how many times it occurs, lowercasing the words. Punctuation must be stripped.

STARTER CODE (python):
def count_words(text: str) -> dict[str, int]:
    # Write your code here
    pass


RULES:
- Keep the function name and signature EXACTLY as given.
- Return working code only. No explanations.
- Put the code in a single ``` block.
- Try to solve it first. If you genuinely cannot, write only this single
  line instead of producing faulty code: CANNOT_SOLVE

===== HAM YANIT =====
```python
def count_words(text: str) -> dict[str, int]:
    import string

    translator = str.maketrans({ch: " " for ch in string.punctuation})
    words = text.lower().translate(translator).split()

    counts = {}
    for word in words:
        counts[word] = counts.get(word, 0) + 1

    return counts
```