added total number of pages, known as numberOfAll to flat rest api