---
title: "Discussion on \"Best way to count documents in MongoDB\" | Hashnode"
description: "Discussion on \"Best way to count documents in MongoDB\". Hello everyone 👋👋\nI created a MongoDB database with 10 million documents.😄 My schema is simple and is for a very very basic inventory management system. \n\nBefore we begin\nname: string,\nquantity: number,\nHere is a sample of some of the documents. \n..."
url: "https://hashnode.com/posts/best-way-to-count-documents-in-mongodb/610248262db92534dc934b09"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Best way to count documents in MongoDB](https://blog.nirjalpaudel.com.np/best-way-to-count-documents-in-mongodb?utm_source=hashnode&utm_medium=feed)

Hello everyone 👋👋 I created a MongoDB database with 10 million documents.😄 My schema is simple and is for a very very basic inventory management system. Before we begin name: string, quantity: number, Here is a sample of some of the documents. ...

Jul 29, 2021 · 3 min read · blog.nirjalpaudel.com.np  
Read the article

-   [#mongodb](https://hashnode.com/tag/mongodb)
-   [#python](https://hashnode.com/tag/python)
-   [#nosql](https://hashnode.com/tag/nosql)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#databases](https://hashnode.com/tag/databases)

## Written by

[Nirjal Paudel](https://hashnode.com/@nirjalpaudel)

@nirjalpaudel · Kathmandu, Nepal

  
[View profile](https://hashnode.com/@nirjalpaudel)

Full Stack Developer

I am a skilled software developer with experience in both front-end and back-end development. I have a Bachelor's degree in Computer Science and have worked on various projects, ranging from building responsive websites to developing complex web applications. I am proficient in programming languages such as JavaScript, Python, and Java, and have experience with frameworks such as React, Node.js, and Django. Additionally, I am experienced in database design and management using technologies like MySQL and MongoDB. I am passionate about software development and am always eager to learn and implement new technologies.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
