'Gets block counts for the LUN.'

def _get_lun_block_count(self, path):

    LOG.debug('Getting    LUN    block    count.')
    lun_infos = self.zapi_client.get_lun_by_args(path=path)
    if (not lun_infos):
        seg = path.split('/')
        msg = _('Failure    getting    LUN    info    for    %s.')
        raise exception.VolumeBackendAPIException(data=(msg % seg[(-1)]))
    lun_info = lun_infos[(-1)]
    bs = int(lun_info.get_child_content('block-size'))
    ls = int(lun_info.get_child_content('size'))
    block_count = (ls / bs)
    return block_count
