`numberOfFiles++` can be moved out? minor nit pick but it reads easier IMO