added counter so it can use the highest counted picture to make the latest an highest filename.