Counting belongs in document.