public function get_children_count() {
        $sortedids = self::get_tree($this->id);
        $invisibleids = $this->get_not_visible_children_ids();
        return count($sortedids) - count($invisibleids);
    }
public function get_children_count() {
        $sortedids = self::get_tree($this->id);
        $invisibleids = $this->get_not_visible_children_ids();
        return count($sortedids) - count($invisibleids);
    }
public function get_children_count ( ) { $ sortedids = self :: get_tree ( $ this -> id ) ; $ invisibleids = $ this -> get_not_visible_children_ids ( ) ; return count ( $ sortedids ) - count ( $ invisibleids ) ; }
Returns number of subcategories visible to the current user

@return int
Returns number of subcategories visible to the current user