An exponential function on the set of varieties