outline-level

outline-level is a compiled Lisp function in `outline.el'.

(outline-level)

Return the depth to which a statement is nested in the outline.
Point must be at the beginning of a header line.
This is actually either the level specified in `outline-heading-alist'
or else the number of characters matched by `outline-regexp'.