单项选择题

It was only then()how much trouble I had caused to him.

A.had I realized
B.that I realized
C.I did realize
D.did I realize