public function countSame(Field $field)
    {
        $sum = 0;
        foreach ($this->fields as $v) {
            if ($v === $field) {
                $sum ++;
            }
        }
        return $sum;
    }
public function countSame(Field $field)
    {
        $sum = 0;
        foreach ($this->fields as $v) {
            if ($v === $field) {
                $sum ++;
            }
        }
        return $sum;
    }
public function countSame ( Field $ field ) { $ sum = 0 ; foreach ( $ this -> fields as $ v ) { if ( $ v === $ field ) { $ sum ++ ; } } return $ sum ; }
Return the amount of times this specific field was already shown.
@param Field $field
@return int
Return the amount of times this specific field was already shown .