MongoDB count entries with search word
db.scfi.find({„Titel“:{$regex: „Charlotte“, $options:’i‘}}).count()
To find all entries with the word „Charlotte“, case-sensitive in the collection „Titel“ (German word for title, headline)
db.scfi.find({„Titel“:{$regex: „Charlotte“, $options:’i‘}}).count()
To find all entries with the word „Charlotte“, case-sensitive in the collection „Titel“ (German word for title, headline)