def info_count(i: int, n: int, *rest: Token, **kwargs: Any) -> None:
num_digits = len(str(n))<EOL>counter_format = "<STR_LIT>".format(num_digits)<EOL>counter_str = counter_format % (i + <NUM_LIT:1>, n)<EOL>info(green, "<STR_LIT:*>", reset, counter_str, reset, *rest, **kwargs)<EOL>
Display a counter before the rest of the message.

    ``rest`` and ``kwargs`` are passed to :func:`info`

    Current index should start at 0 and end at ``n-1``, like in ``enumerate()``

    :param i: current index
    :param n: total number of items