title: Mongo db first groupby count not able to display
body: <pre><code>[
   { "$match": {  
       "created":{  
           "$gte": ISODate("2015-07-19T07:26:49.045Z")
       },
       "created":{  
           "$lte": ISODate("2015-07-20T07:37:56.045Z")
       }
   }},
   { "$group:{  
       "_id":{  
           "ln":"$l.ln",
           "cid":"$cid"
       },
       "appCount":{ "$sum": 1 }
   }},
   {  "$group": {  
       "_id": {  "ln":"$_id.ln" },
       "cusappCount": {  "$sum": 1 }
   }},
   {  "$sort":{ "_id.ln":1  } }
  ]
  </code></pre>
  
  <p>In above mongo db query I am not able to display the appcount in result.. I am able to display cusappCount.  Could anyone please help me on this </p>