Yep, you can update your original post with the new code, you are right, I missed the print out section, I did not change it. Also, the section initialising the counters is not strictly required, bash will set an uninitialised variable to zero on the first use, so you get the same results, but...