backends get_page_count method to raise it, having the api's get_page_count function decide how to handle the exception