display query count in index page