class Solution: def countTestedDevices(self, batteryPercentages: List[int]) -> int: total = 0 for i in batteryPercentages: if i-total > 0: total += 1 return total