S3 Bucket File Count
The purpose of this document is to count files in an S3 bucket.
s3cmd --config=/home/ec2-user/.s3cfg ls s3://bucket.s3.aws.example.com | grep .zip | wc -l
Here's a zabbix UserParameter that uses this:
UserParameter=param.name.s3-count,s3cmd --config=/var/lib/zabbix/.s3cfg ls s3://bucket.s3.aws.example.com | grep .zip | wc -l