public function get_counter($type = self::writers) { $q = $this->select_q($type); $stat = msg_stat_queue($q); return $stat['msg_qnum']; }