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

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