introduction of CURL request to bring back total number of records