mipLevelCount

The mipLevelCount read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture.

MDN Reference