def METHOD_NAME(self) -> Tuple[int, int]:
    if self._state is None:
        raise ValueError("ProgressBar not started properly")
    state = self._state
    ndone = len(state["finished"])
    ntasks = sum(len(state[k]) for k in ["ready", "waiting", "running"]) + ndone
    return ndone, ntasks