2016-02-15 13 views

回答

1

Try:

db.col.find({}).count() 
db.col.find({first_name: {$exists: true}}).count() 
db.col.distinct('first_name').length