fixing count and adding asynchronous duration