title: How do you find all records with a field array count greater than a certain amount in Mongoid?
body: <p>I basically have a <code>User</code> object and defined inside of it is an array <code>field</code> <code>phone_numbers</code>.  I want to get all of the user objects in my database that have a <code>phone_numbers</code> count greater than <code>1</code>.<br><br>
  Is there a resource to learn about queries like this?  I couldn't find anything useful online as most of the results were for more simply queries.</p>
  
  <p>Code:</p>
  
  <pre><code>class Location
    include Mongoid::Document
  
    field :name
    field :phone_numbers, type: Array
  end
  </code></pre>
  
  <p>I tried the following but it didn't work:</p>
  
  <pre><code>Location.where("this.phone_numbers.count &lt; 1").count
  </code></pre>
  
  <p>Thanks!</p>