added count of totaldocuments