結果 : javascript count elements in array with condition