Method: Easymongo::Query#count

Defined in:
lib/easymongo/query.rb

#count(d = {}) ⇒ Object

Count



90
91
92
# File 'lib/easymongo/query.rb', line 90

def count(d = {})
  g!(d); cursor.count.tap{ c!}
end