create counter file if it doesn't exist