public function get_visible_nodes_number() { return count($this->apm_tree->get_visible_nodes(self::root_id, $this->tree_state->get_unfolded_nodes())); }