This version of Unity is unsupported.

Texture.mipmapCount

public int mipmapCount;

Description

How many mipmap levels are in this Texture (Read Only).

The returned value includes the base level as well, so it is always 1 or more.