You can find the number of objects in an S3 bucket by running the below command from AWS CLI where bucketname is the name of the bucket.
aws s3 ls s3://bucketname/ --recursive | wc
You can find the number of objects in an S3 bucket by running the below command from AWS CLI where bucketname is the name of the bucket.
aws s3 ls s3://bucketname/ --recursive | wc