"If he does not first count the cost"
"when he has built a base" or "when he has completed the first part of the building"