How to get search request details from the CountResponse

I am using the code as below to get count for a particular search term. I would like to know from the response as to what is the index that the search was run on. I am not seeing anything expect the count in the response. Any help is appreciated.
QueryBuilder searchQueryBuilder = ....
CountResponse response = client.prepareCount("index-name")
.setQuery(searchQueryBuilder)
.execute()
.actionGet();

CountResponse is deprecated in 2.1.1. Need to use SearchResponse.