Added support for counting lines of file returned from AWS S3