seq--count-successive

seq--count-successive is a compiled Lisp function in `seq.el'.

(seq--count-successive PRED SEQ)

Return the number of successive elements for which (PRED element) is non-nil in SEQ.