adding logging of queryQueueCount