$VAR1 = [ 'PPLLOO', 'HHYYTT', 'TTRRDD', 'PPLLOO', 'TTRRDD', 'PPLLOO', 'PPLLOO' ]; $VAR1 = { 'TTRRDD' => 2, 'PPLLOO' => 4, 'HHYYTT' => 1 }; PPLLOO has appeared 4 times. TTRRDD has appeared 2 times.