{{ $type := (printf "%T" .value) }}
{{ $typeIsString := (eq "string" $type) }}
{{ $typeIsSlice := (findRE "^([[][]]|.*TaxonomyList|output\\.Formats|resource\\.Resources)" $type) }}
{{ if $typeIsString }}
1
{{ else }}
{{ if $typeIsSlice }}
{{ $len := (len .value) }}
{{ $len}}
{{ else}}
0
{{ end }}
{{ end }}