counting jump between first two 'Rank' occurrences:
def find_jumps(filename):
first = True
count = 0
with open(filename) as f:
for line in f:
if 'Rank' in line:
if first:
count = 0
#set this to 1 if you want to include one of the 'Rank' lines.
first = False
else:
return count
else:
count += 1