Cluster statistics of the lattice gas model in three and two dimensions