Euclid: Effects of sample covariance on the number counts of galaxy clusters