How To Count The Number Of Times A For Loop Is Executed Python