<reponame>devspaceship/google-kick-start<gh_stars>0
T = int(input())
for t in range(T):
    N = int(input())
    heights = list(map(int, input().split(' ')))
    peaks = 0
    for i in range(1, N - 1):
        if heights[i] > heights[i - 1] and heights[i] > heights[i + 1]:
            peaks += 1
    print("Case #{}: {}".format(t + 1, peaks))
T = int(input())
for t in range(T):
    N = int(input())
    heights = list(map(int, input().split(' ')))
    peaks = 0
    for i in range(1, N - 1):
        if heights[i] > heights[i - 1] and heights[i] > heights[i + 1]:
            peaks += 1
    print("Case #{}: {}".format(t + 1, peaks))
#{}: {}".format(t + 1, peaks))