check if pages are a number. not all endpoints have count.json available