in reply to getting the number of fields in hash per key

Also using scalar
scalar keys %{$hash{key}}
Greets
Hopes