Sentence:  He had not even thought about her much except <WSD>once</WSD> or twice at night in bed when his slowly ranging thoughts would abruptly , almost accidentally , encounter her . 
Meaning of the word marked with <WSD> tags:  on one occasion