get number of documents inside collection