class Buffer;
-class TeXErrors;
+class DocIterator;
class ErrorList;
+class TeXErrors;
/**
* Loads a LyX file \c filename into \c Buffer
///
void bufferErrors(Buffer const &, ErrorList const &);
+/// Count the number of words in the text between these two iterators
+int countWords(DocIterator const & from, DocIterator const & to);
+
+
#endif // BUFFER_FUNCS_H