def birthdayCakeCandles(ar):
    count = 0
    max_ar = max(ar)
    for i in range(len(ar)):
        if ar[i] == max_ar:
            count += 1
    return count

7252ea3c1afa250b81b00fc59e7b1fca37816069
<mask token>

def birthdayCakeCandles(ar):
    count = 0
    max_ar = max(ar)
    for i in range(len(ar)):
        if ar[i] == max_ar:
            count += 1
    return count
