count fetch 0 record return what môngdb code example Example: mongo count db.collection.countDocuments( <query>, <options> )