start of download script for counters