-/// Expand the counters for the labelstring of \c layout
-std::string expandLabel(Buffer const & buf, LyXLayout_ptr const & layout,
- bool appendix);
-
-/// updates current counter and/or label if possible.
-/**
-\retval true if a full updateCounters is required.
-\retval false if a full updateCounters is not required.
-*/
-bool needsUpdateCounters(Buffer const & buf, ParIterator & it);
+/// Count the number of chars in the text between these two iterators
+int countChars(DocIterator const & from, DocIterator const & to, bool with_blanks);