mongodb get count of collection enteries code example Example: count collection mongodb db.mycollection.count()