Thank you for your answer, It was helpful!
In reply to Re^2: counting occurrence of an element in a hash by JusaEngineer in thread counting occurrence of an element in a hash by JusaEngineer