<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def path_size(p: tcod.path.AStar) -> int: """Return the current length of the computed path. Args: p (AStar):
 An AStar instance. Returns: int: Length of the path. """

    return int(lib.TCOD_path_size(p._path_c))