org-current-level

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

(org-current-level)

Return the level of the current entry, or nil if before the first headline.
The level is the number of stars at the beginning of the headline.