[#56746980] Cast the results of the request to an array before taking a count when getting all pages of an index.
Merge pull request #52 from jamesiarmes/index-cast-to-array

[SPRINTFIX][#56746980] Cast the results of the request to an array before taking a count when getting all pages of an index