finally fixed problem with count queries being wrong in the case when count of documents changed while initial query was running.
Now instead of assigning the count we add to it.