get title of doc and total