I'm trying to count the rows in a file until there's at least 5 rows, and then stop counting.
I can't figure out why this simple while loop seems to be generating an infinite loop:
row_count = 0
while row_count <= 5:
for row in file_reader:
row_count += 1