Sampling-based Estimation of the Number of Distinct Values in Distributed Environment