# File kirbybase_adapter.rb, line 661
661:     def self.count(*args)
662:       if args.compact.empty?
663:         if block_given?
664:           find(:all, :conditions => Proc.new).size
665:         else
666:           self.find(:all).size
667:         end
668:       else
669:         self.find(:all, :conditions => build_conditions_from_options(args)).size
670:       end
671:     end