from typing import Any


def inc(assoc_arr: dict, key: Any) -> dict:
    """Increase by one or initialize value in associative array."""
    assoc_arr[key] = assoc_arr.get(key, 0) + 1
    return assoc_arr