Statistics for Brickwork buildings with earthquake resistance