CrowdforThink : Blog -How to count the occurrence / frequency of array elements in JavaScript