public function countValues(): int
    {
        $count = 0;

        foreach ($this->fields as $field) {
            $count += $field->count();
        }

        return $count;
    }
public function countValues(): int
    {
        $count = 0;

        foreach ($this->fields as $field) {
            $count += $field->count();
        }

        return $count;
    }
public function countValues ( ) : int { $ count = 0 ; foreach ( $ this -> fields as $ field ) { $ count += $ field -> count ( ) ; } return $ count ; }
Gets the total number of values in the fields list structure.
Gets the total number of values in the fields list structure .