improved performance of realtime counting of search results.