--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Count results (given the conditions)
- !ruby/struct:SM::Flow::P 
  body: "@example the count of all friends"
- !ruby/struct:SM::Flow::VERB 
  body: "  Friend.count\n"
- !ruby/struct:SM::Flow::P 
  body: "@example the count of all friends older then 18"
- !ruby/struct:SM::Flow::VERB 
  body: "  Friend.count(:age.gt =&gt; 18)\n"
- !ruby/struct:SM::Flow::P 
  body: "@example the count of all your female friends"
- !ruby/struct:SM::Flow::VERB 
  body: "  Friend.count(:conditions =&gt; [ 'gender = ?', 'female' ])\n"
- !ruby/struct:SM::Flow::P 
  body: "@example the count of all friends with an address (NULL values are not included)"
- !ruby/struct:SM::Flow::VERB 
  body: "  Friend.count(:address)\n"
- !ruby/struct:SM::Flow::P 
  body: "@example the count of all friends with an address that are older then 18"
- !ruby/struct:SM::Flow::VERB 
  body: "  Friend.count(:address, :age.gt =&gt; 18)\n"
- !ruby/struct:SM::Flow::P 
  body: "@example the count of all your female friends with an address"
- !ruby/struct:SM::Flow::VERB 
  body: "  Friend.count(:address, :conditions =&gt; [ 'gender = ?', 'female' ])\n"
- !ruby/struct:SM::Flow::P 
  body: "@param property [Symbol] of the property you with to count (optional) @param opts [Hash, Symbol] the conditions"
- !ruby/struct:SM::Flow::P 
  body: "@return [Integer] return the count given the conditions"
- !ruby/struct:SM::Flow::P 
  body: "@api public"
full_name: DataMapper::AggregateFunctions#count
is_singleton: false
name: count
params: (*args)
visibility: public
