Consider a scalar field theory in d dimensions with interaction ϕn. A 1PI Feynman diagram has V vertices, P propagators, and E external lines. Using Euler's relation L=P−V+1 for the number of loops, derive the superficial degree of divergence D in terms of d, n, and E.