def sync_buckets(src_bucket, dest_bucket):
    """Sync objects from one AWS S3 bucket to another.

    Args:
        src_bucket (boto3 Bucket): Objects will be copied from this bucket
            to *dest_bucket*.
        dest_bucket (boto3 Bucket): Objects will be copied here from *src_bucket*.

    Returns:
        int: Count of objects copied between buckets.

    """
    count = 0
    for src_obj in src_bucket.objects.all():
        response = src_obj.get()
        dest_bucket.put_object(Key=src_obj.key, Body=response["Body"].read())
        count += 1
    return count