Respond to the COUNT subcommand.
346454
function count(req, res) {
  var list = getList.call(this);
  return res.send(null, list.length);
}
927844
function count(query, callback) {
    self.emit('count', query)
    findByQuery(query, options, function (error, objects) {
      self.emit('received', objects.length)
      callback(undefined, objects.length)
    })
  }
33771
function(count) {
      count = count || this.INIT_COUNT;
      jsl.status(this.name + ' x ' + count);
      this.running = true;
      var me = this;
      setTimeout(function() {me._run(count);}, 200);
    }
698325
void manage_reply(int timeout)
	{
		switch (cmd_type)
		{
		case CMD:
			command_inout_reply(timeout);
			break;
		case ATT_R:
			read_attribute_reply(timeout);
			break;
		case ATT_W:
			write_attribute_reply(timeout);
			break;
		}
	}
1061755
function count(req, res, next) {
  db.users.count(function(err, count) {
    if(err) { return next(err); }
    res.json({count: count});
  });
}
719371
def count(self):
        """"""
        cursor = self.conn.cursor()
        with contextlib.closing(cursor):
            cursor.execute('SELECT COUNT(*) FROM events')
            res = cursor.fetchone()
            return res[0]
1005169
def set_total_count(self, value):
        """"""
        if not self.total_count_flag and value:
            self._count.append(int(value))
            self.total_count_flag = True
1246602
def count(cls, *criteria, **filters):
        """"""
        return cls.query.filter(*criteria).filter_by(**filters).count()
622743
function(count, opts, cb) {
  this.count = count;
  this.cb = cb;
  var self = this;
  if (opts.timeout) {
    this.timerId = setTimeout(function() {
      self.cb(true);
    }, opts.timeout);
  }
}
767733
private void reportCounter(final String name, final Counter counter) {
		send(name, String.valueOf(counter.getCount()));
	}
996282
def count(self, count):
        
        if count is None:
            raise ValueError("Invalid value for `count`, must not be `None`")
        if count is not None and count < 0:
            raise ValueError("Invalid value for `count`, must be a value greater than or equal to `0`")

        self._count = count
4837
def step(self, count=1):
    """"""
    return self._client.send(step=sc_pb.RequestStep(count=count))
1111554
public void count(final Stat name, final int count) {
        Integer value = counters.get(name);
        value = value == null ? count : value + count;
        counters.put(name, value);
    }
1209371
public function respond()
	{
		echo "<h1>".$this->inspector->message()." <small>( ".$this->inspector->exception_name()." )</small></h1>";
		echo "<pre>".$this->inspector->exception()->getTraceAsString()."</pre>";
	}
62074
def send_up(self, count):
                
        for i in range(count):
            self.interface.send_key(Key.UP)
1218826
def query_target_count(self, target):
    """"""
    reply = NVCtrlQueryTargetCountReplyRequest(display=self.display,
                                               opcode=self.display.get_extension_major(extname),
                                               target_type=target.type())
    return int(reply._data.get('count'))
390386
def count(self, request, *args, **kwargs):
        

        self.queryset = self.filter_queryset(self.get_queryset())
        return response.Response({'count': self.queryset.count()}, status=status.HTTP_200_OK)