I think it broke here:
Foreach($Dic_CountsSingle in $Dic_Counts)
This foreach loop expects an array as the second argument. $ Dic_Counts is a hash table, so it has no index. Now I am wondering if an ordered hash table will work in a foreach loop. It has an index.
Nope. Foreach will also not list an ordered hash table. Gotta do it myself.
source share