Easiest if eveything is in the same units.... 1 ft = 12 inches
40ft(12inches/ft) x 1ft(12inches/ft) x 3ft(12 inches/ft) = 207360 cu inches
Each brick is 8x4x2=64 cu inches
Some bricks may need to be cut, (and assuming no mortar space) 207360 cu inches / (64 in^3/brick) = 3240 bricks