Created scripts for synchronious access to counter file