What does volume measure?

a
the total distance around a figure
b
the average of the sum of all items
c
the exposed surface of a solid shape
d
the amount of space occupied by an object (its capacity)