minibuffer-depth

minibuffer-depth is a built-in function in `C source code'.

(minibuffer-depth)

Return current depth of activations of minibuffer, a nonnegative integer.