in reply to Re: Number of values for each key in hash
in thread Number of values for each key in hash

Possible additional tweaks:

None of these are required to make the presented script work.