Hereβs a command to list the number of objects in an S3 bucket using the AWS CLI.
aws s3 ls s3://<bucket-name>/ --recursive | wc -l