title: Count and Data from Table in Laravel5
body: <p>I am using Query Builder and here is my code in Laravel5</p>
  
  <pre><code>$users = DB::table('brand_customers')
              -&gt;select('brand_id')
              -&gt;where('mobile', $mobile)
              -&gt;take(15)
              -&gt;get();
  </code></pre>
  
  <p>I am limiting to 15 records but I am also looking for total count. Currently, I am getting count using this.</p>
  
  <pre><code>$users-&gt;count();
  </code></pre>
  
  <p>I tried the above code but no luck. How can I get both the data and count with the same query. Thanks.</p>