Caculate UV counterterm