How to use pagination per batch

Yes it will give the records as per the size in 1st hit, but what about other records ?
And how do we get number of records retrieved from the response ?
Below is my search response :
SearchResponse response = highLevelRestClient.search(searchRequest, RequestOptions.DEFAULT);