update check-log.rb to handle encoding failures; add s3 count plugin