This is showing the wrong output in all the test cases
but passes in custom input
t = int(input())
for i in range(t):
n = int(input())
s = input()
a = [int(x) for x in s.split()]
maxm = a[0]
count = 1
for j in range(1,len(a)):
if a[j]>=maxm:
count+=1
maxm = a[j]
print(count,'\n')