Added summary to search licence view

@xliiv please review
count_licences?