Count the unit cubes in the solid, layer by layer, including hidden cubes.

Total cubes = 10.

Final Answer: 10