Search: rectified indexout of bound exception while displaying tags count.