You may have added the number of squares that can be seen in the picture. To find the volume, you need to count the number of cubes that fill the entire rectangular prism.