count from the specified origin path to prevent an endless extraction