A 40 by 8 ft wall of 8 in block with one door is 300 sq ft net. At 1.125 blocks per square foot that is 337.5 blocks, 355 with 5% waste, about 11 bags of mortar at 35 blocks a bag, and with a #5 bar in a grouted cell every 32 in, 1.04 cubic yards of grout and 175 lb of rebar.
The new CMU wall calculator does that sum for any set of walls and openings, adds bond beam courses and joint reinforcement, and runs in the browser. The mortar-per-bag and cell void figures are rules of thumb you can change, and nothing is checked against a masonry code or an engineer.