Javascript Count Array Objects In Javascript With Example