Move num_docs to outside of a tag