small modification for search count for both apache and app server