I want to use a loop to count reads in my raw C. virginica gonad sequence data. I tried a loop in this Jupyter notebook but got a gunzip error:

I've tried the echo $(( $(gunzip -c FILENAME | wc -l) / 4 )) code on a single file so I know it works...just not sure how the loop changes things.