For example, counting the cubes of the top layer ... Count the unit cubes that make the top layer of the cuboid. Multiply the number of cubes in the top layer by the number of layers.