How many Saḥabas were involved in the preparation of Ditch in Ghazwa Ahzab?

How many Saḥabas were involved in the preparation of Ditch in Ghazwa Ahzab?

A. 3000
B. 2000
C. 1000
D. 4000