MongoDB - count current read/write operations
The serverStatus command contains operation counts, which report on database operations by type since the mongod instance last started.
If you need to find the number of operations over a specific time period, retrieve the serverStatus result periodically for comparison over time.