Add PCM counter logic.