added view count to search template