Вы можете использовать счетчик:
timeslooped = 0
for x in dictionary:
timeslooped +=1
print(timeslooped) # If the looped has looped 4 times then this should print 4
или использовать enumerate
:
for timeslooped, x in enumerate(dictionary): # enumerate returns the index and the value as a tuple
print(timeslooped)