单项选择题

The man burst into the office and tried to grab the money as it ______.

A.was counted
B.has been counted
C.was being counted
D.had been counted