updated totalRecords with the on error
updated totalRecords with the on error
Updated README.md to add the new API call
Merge pull request #7 from codinglion/totalRecords

updated totalRecords with the on error callback