public function count_questions($categoryid, $includesubcategories, $tagids = []) {
        $questionids = $this->get_question_ids($categoryid, $includesubcategories, $tagids);
        return count($questionids);
    }