Javascript Count Array Elements With Similar Chemical Properties