You should try it to see other approaches...
In reply to Re: array counting by tjh in thread How can I count and display unique items in an array? (was: array counting) by Anonymous Monk