public function get_count_discussions_in_forum(forum_entity $forum) : ?int {
        return $this->get_db()->count_records(self::TABLE, [
            'forum' => $forum->get_id()]);
    }
public function get_count_discussions_in_forum(forum_entity $forum) : ?int {
        return $this->get_db()->count_records(self::TABLE, [
            'forum' => $forum->get_id()]);
    }
public function get_count_discussions_in_forum ( forum_entity $ forum ) : ? int { return $ this -> get_db ( ) -> count_records ( self :: TABLE , [ 'forum' => $ forum -> get_id ( ) ] ) ; }
Get the count of the discussions in the specified forum.

@param   forum_entity $forum
@return  int
Get the count of the discussions in the specified forum .