# File lib/will_paginate/finders/data_mapper.rb, line 20 def wp_count(options) #:nodoc count_options = options.except(:count, :order) # merge the hash found in :count count_options.update options[:count] if options[:count] count_options.empty?? count() : count(count_options) end