def count ids: nil, tags: nil, dom: nil, active: true
      f = Helpers.filter(ids: ids, tags: tags, dom: dom)
      a = Helpers.pending_or_waiting(active)
      Execute.task_popen3(*@override_a, f, a, "count") do |i, o, e, t|
        return Integer(o.read)
      end
    end
def count ids: nil, tags: nil, dom: nil, active: true
      f = Helpers.filter(ids: ids, tags: tags, dom: dom)
      a = Helpers.pending_or_waiting(active)
      Execute.task_popen3(*@override_a, f, a, "count") do |i, o, e, t|
        return Integer(o.read)
      end
    end
Count the number of tasks that match a given filter. Faster than counting
 an array returned by Controller#all or Controller#some.

 @param ids [Array<Range, Fixnum, String>, String, Range, Fixnum]
 @param tags [Array<String>, String]
 @param dom [Array<String>, String]
 @param active [Boolean] return only pending & waiting tasks
 @api public