Handle errors from getCount or getS3Header
Merge pull request #106 from LocalData/handle-error

Handle errors from getCount or getS3Header