title: Laravel Collections counting result
body: <p>On a User model (table with 4 records), when I do:</p>
  
  <pre><code>$coll = User::all();
  echo $coll-&gt;count();
  </code></pre>
  
  <p>I get the amount of records found (4).</p>
  
  <p>But when I do:</p>
  
  <pre><code>$coll = User::find(2);
  echo $coll-&gt;count();
  </code></pre>
  
  <p>I do not get 1 (As I expect) but the amount of attributes in the resulting collection (23 in this case).</p>
  
  <p>How can I check if more then one records are found?</p>
  
  <hr>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>OK, thanks to you all I now see the difference in result between collection and model. </p>
  
  <p>But my real problem is that I have to detect if I am having a model or a collection as a result. Depending on this result I perform some changes on the contents of the fields in the items (with map()) or model. How can I detect if the result is a model or a collection?</p>
  
  <pre><code>if(count($coll) &gt; 1)
  </code></pre>
  
  <p>Works, but is this the right approach?</p>