Changing to get the correct search document count and not the number of docs in the workspace, which is what it was doing.