Add counter and log directory to LFN as appropriate.