from typing import Callable


def counter(invocation_count: int) -> Callable[..., int]:
    """Function that returns true after `invocation_count` invocations."""
    count = 0

    def inc() -> int:
        nonlocal count
        count += 1
        return count >= invocation_count

    return inc