You can indicate the number of results returned by rendering the value of the search response object’s groupCount property. For example:

<c:out value="${queryResponse.groupCount}"/>

Note that this value is not affected by paging. It represents the total number of result groups returned by the search, regardless of the number on any given page. Note that if you are grouping results by property (see Setting Grouping Options), this number may be smaller than the number of documents returned, since a group can contain multiple documents.