int CMarkup::GetDocElemCount() const;
GetDocElemCount returns the number of elements in the document. This might be useful to gain a sense of the complexity of the document, statistically. It is also a way of estimating CMarkup's memory consumption since CMarkup maintains one structure of 8 integers per element, though there will usually be additional unused structures allocated. See CMarkup Indexing Explained.