def METHOD_NAME(self, object_name: str) -> int:
    try:
        response = self.client.get_object(
            namespace_name=self.namespace,
            bucket_name=self.bucket,
            object_name=object_name,
        )
    except Exception as e:
        _reraise_oci_errors(self.get_uri(object_name), e)
    if response.status == 200:
        return int(response.data.headers['Content-Length'])
    else:
        raise ValueError(f'OCI get_object was not successful with a {response.status} status code.')