Hello. What do you mean by does it not count? Do you mean if it takes it into account? An HDRI casts shadows in Cycles but not in Eevee, so yes, you'd have to calculate that by baking it with such tools.
Jonathan Lampel
replied
The HDRI will affect the irradiance volume, which is one way around the lack of environment shadows in Eevee like Omar mentioned.