Computing the number of Voxels in VoxelGrid created from PointCloud in advance

Hello,

I am converting my PointClouds into VoxelGrids using the VoxelGrid.create_from_point_cloud() method.
Is there any way of computing the number of voxels is resulting VoxelGrid before the conversion? Or maybe the maximum grid_index in VoxelGrid?
I can’t seem to find a connection between number of points in point cloud and specified voxel_size parameter.

Thanks so much for any replies!

Thomas