/** * Get the count of comments for a given thread. * * @return count of comments for a thread */ public function execute() { $this->checkDefaultApp($this->aid); $response = array(); $count = Api_Bo_Comments::getCommentCount($this->xid, $this->aid); $response['result'] = "{$count}"; return $response; }