Php Count Array Elements With Highest Ionic Characteristics