title: How to SELECT COUNT(column_name) in laravel mongodb
body: <p>How can we retrieve the size of an array in the <a href="https://github.com/jenssegers/laravel-mongodb" rel="nofollow noreferrer">laravel-mongodb</a>'s <code>get()</code> function?</p>
  <p>Update: Ultimately, I want to get the size of the array column for each qualified document</p>
  <p>Example, for each document, I have an array of members data. Therefore, I would like to know for each document, how many members are there.</p>
  <p>From Laravel's perspective, I could just load the entire member list for all qualified records and use <code>count()</code> to get the array size in blade template. But I wanna avoid that because it will cause loading issue if the member list for each record is huge.</p>