I know this might be easy, just help me with the reduce function to count using the length of documents.
I have large dataset and I want to count the number of records whose number of key value pairs is 44 and those who are below it.
example. set of my collection
Obj1 - {44 fields} Type Object
Obj2 - {44 fields} Type Object
Obj3 - {44 fields} Type Object
Obj4 - {44 fields} Type Object
Obj5 - {2 fields} Type Object
Obj6 - {1 fields} Type Object
Obj7 - {44 fields} Type Object
I want to get the count 5 for 44 and 2 of < 44.